Commit graph

1481 commits

Author SHA1 Message Date
Konrad `ktoso` Malawski
7c75abbf7e +str #24229 move SinkRef / SourceRef to akka.stream
+str #24229 remove protobuf changes, which do not need to be made in this PR

docs

moved things

config object

subscription timeout confifmed working, also, attributes

document attributes for sub timeout

tests for the source also failing when it should

additional demand test

implemented protection from materializing "in cycles"; would be nice in
types but that breaks the niceness of use of the types
SinkRef/SourceRef...

cleanup

no idle timeout built in, can use the Timeout stages

more docs

simplest change to prevent exposing SinkRef => SourceRef => SinkRef cycle

Things to decide:
 * is it ok to require using `getSource` / `getSink` as Java API, is there better naming?
 * where should the constructors go? I'd say just in regular javadsl/scaladsl `Source`/ `Sink` objects

move constructors to {javadsl,scaladsl}.{Source,Sink} companion objects

Remove now useless "canMaterialize" field

Separate stage (implementation) from ref (wrapped actor ref) to make it clearer what is serialized

Clarify that partner refs are not optional in on-the-wire interfaces

minor cleanup in SourceRefStage

Renamed the stages but questionable if that really helps ;)

cleanups, better docs

cleanup, fix docs compilation

fix mima

got rid of Futures in the materialized values of stream refs
2018-01-23 02:27:10 +09:00
Konrad `ktoso` Malawski
682b047ac3 +str #24229 first working SinkRef, though serialization is wrong somehow (when serialize-messages = on)
silly serialization mistake, should have fixed serialize as well

tage actors now can have names, which helps a lot in debugging

thread weirdness

make sure to fail properly, actually go over remoting

issue with not receiving the SinkRef... what

initial working SinkRef over remoting

remote Sink failure must fail origin Source as well

cleaning up and adding failyre handling

SinkRef now with low-watermark RequestStrategy

source ref works, yet completely duplicated code
2018-01-23 02:27:10 +09:00
Christopher Batey
719f0fb672
Typed docs for sharding and singleton (#24364) 2018-01-22 13:47:18 +00:00
Victor Hiairrassary
68bd705d64
Fix some links in cluster-dc.md documentation 2018-01-19 20:27:15 +01:00
Johan Andrén
034d6c6e6a Actor-to-actor ask for typed, #23770 2018-01-19 18:13:24 +01:00
Patrik Nordwall
1d5b913f7f
Merge pull request #24346 from akka/wip-22776-gracefulStop-patriknw
=typ Examples how to stop actor with cleanup (#22776)
2018-01-19 12:31:50 +01:00
Christopher Batey
4f6af8d856 Add typed supervisor strategy and some basic docs (#24341) 2018-01-19 11:33:49 +01:00
gosubpl
9767ebb61c =typ Examples how to stop actor with cleanup (#22776) 2018-01-19 11:32:54 +01:00
Patrik Nordwall
14c6440cee Rename scaladsl/javadsl Actor to Behaviors, #24071
* The technical reason for not naming it Behavior is that
  it would be duplicate import conflicts of
  akka.actor.typed.Behavior and akka.actor.typed.scaladsl.Behavior
* Plural naming is pretty common for factories like this,
  e.g. java.util.Collections
2018-01-17 14:58:55 +01:00
Richard Imaoka
38b10683a9 Allow tagging in persistence typed (#24217)
* Allow tagging in persistence typed (#23817)

* Use Set[String] for tags

* Documentation for persistence typed tagging

* Rename tagging parameter to tagger
2018-01-17 14:20:49 +01:00
Patrik Nordwall
e4dd3c24fc add maxRestarts to RestartWithBackoff #24129 2018-01-16 18:28:10 +01:00
Johan Andrén
32987c8704
Simpler tls over tcp #24153 2018-01-16 18:05:08 +01:00
Catalin Ursachi
2360de583d Add streams recipe for 'source from function' (#22074) (#24132) 2018-01-16 15:29:03 +01:00
Johan Andrén
7ce494b262 A bit more text about the clustered receptionist 2018-01-11 18:17:15 +09:00
Christopher Batey
45c7303d3f Cluster typed examples in scala and java 2018-01-11 18:17:15 +09:00
Christopher Batey
f17dc5c7f7 Receptionist docs and examples 2018-01-11 18:17:15 +09:00
Konrad `ktoso` Malawski
59a48c728b
+rem #24265 protobuf serializer for Address and UniqueAddress in akka… (#24267)
* +rem #24265 protobuf serializer for Address and UniqueAddress in akka-remote

* remove the duplication, by using previously existing type

* fixed doc link

* make it easier to enable the additional no-java-serialization bindings

* fixed akka-actor failure due to changes

* cleanup

* Update reference.conf

* Update serialization.md

* Update reference.conf
2018-01-10 19:28:51 +09:00
Konrad `ktoso` Malawski
eba7473199
=doc,per Include link to nice article about Events as First-Class Citizens (#24262)
* =doc,per Include link to nice article about Events as First-Class Citizens

* Move link up
2018-01-10 11:12:56 +09:00
Arnout Engelen
1f898ea491 Fix Java logging code example (#24275) 2018-01-10 11:09:54 +09:00
fredfp
0bd408977b cluster client handover when receptionist's node leaves the cluster (#24167)
* Always add sender of GetContacts to client interactions

* Handover clients when receptionist leaves the cluster

* Revision based on code review

* Cluster receptionist only tracks connected clients
2018-01-09 10:41:33 +01:00
Nafer Sanabria
804dc4b6ba add flag crdt constants (#24208)
* add flag crdt constants

* add scaladoc
2018-01-09 10:39:06 +01:00
Rebecca Grenier
7c94bc7df4 Update tutorial_5.md (#24268)
plural noun doesn't need an apostrophe
2018-01-09 12:20:09 +09:00
Josep Prat
0796607aa4 =doc Fix dangling @@@ in howto docs #23516 (#24261)
Refs: #23516
Last Java pattern was shown for both Java and Scala.
2018-01-08 02:54:11 +01:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Christopher Batey
bd2a3de88a
Typed async testkit (#24203)
* Typed async testkit
* Pull out useful parts from internal TypedSpec into a public TestKit
* Port internal tests to use the external testkit
2018-01-04 15:09:38 +00:00
Łukasz Drygała
0c0bf91661 rewrite FlatSpec tests using WordSpec #24186 2018-01-03 12:51:27 +01:00
Ayush Mishra
6d6e96179d Adding new book reference for Akka HTTP (#24218) 2018-01-03 12:47:11 +01:00
kerr
7edf3bfecf + actor #15446 add external predicate to ReceiveBuilder (#24221) 2018-01-03 10:23:31 +01:00
Sebastian Harko
9ccf71076a Docs: add dependency info in docs for akka test kit (#24232)
* add proper dependency in docs

* use new paradox syntax for dependencies

* Update testing.md
2018-01-03 10:07:37 +01:00
Manuel Bernhardt
86ab6cbadc Fixing small error in the ORMap documentation (#24227)
Previously `remove` and `delete` were duplicated
2018-01-02 17:17:04 +01:00
kerr
0f0ea65988 = paradox fix typo (#24207) 2017-12-26 16:25:31 +01:00
Christopher Batey
7aa831bc2f
Initial pass of typed testkits + documenation (#24187)
* Initial pass of typed testkits

Not expecting this to be the final API just want to get some
examples documented and internals hidden

Refs #23667 and #22764
2017-12-22 16:44:39 +00:00
Christopher Batey
bfbdf89776
Initial docs for typed persistence (#24197) 2017-12-22 13:43:36 +00:00
Patrik Nordwall
b395be2559 document rolling upgrade of serializers (#24200) 2017-12-22 09:06:51 +00:00
Christopher Batey
2fa39894e6
New docs tree for akka typed (#24182)
* New typed docs tree and coexistence with scala examples
* Coexistence Java examples
* Document how to convert untyped system to typed
2017-12-21 10:15:43 +00:00
Akinmolayan Olushola
217b390ec5 made correct to sentence in documentation (#24180) 2017-12-19 15:51:59 +01:00
Steffen Gebert
0a77e79bf3 =doc Fix typos in Distributed Data section (#24164)
* =doc receiveUpdateResoponse typo
* =doc and -> an typo
2017-12-19 07:23:45 +00:00
Sakthipriyan Vairamani
dbe30bd91e update grammar and code highlighting (#24174) 2017-12-19 07:22:06 +00:00
Christopher Batey
f7b3b483a8
Separate typed into modules (#24173)
Creates the following modules:

akka.actor.typed
akka.persistence.typed
akka.cluster.typed
akka.cluster.sharding.typed

Differences from untyped:

DData and cluster singleton are inside cluster. DData is in the package akka.cluster.dddata.typed

Refs #23632
2017-12-18 14:50:46 +00:00
Shajahan Palayil
e8ff22e035 Correcting migration guide to configure serialization of messages (#24159) 2017-12-14 16:45:36 +01:00
Ignasi Marimon-Clos
752f380cf6 Formatting: used textile instead of markdown. (#24139) 2017-12-14 16:40:58 +01:00
Arnout Engelen
6541d3d19e
Split up 'Networking' docs in 'Networking' and 'Clustering' (#24142)
We also probably want to add some more wording explaining you probably don't
want to use remoting directly, but either use a 'proper' protocol like
akka-http to loosely couple or akka-cluster for more coupled systems, but that
could be another PR

Move 'networking' below 'streams' as you don't typically have to deal with it directly
2017-12-14 11:33:41 +01:00
Christopher Batey
2a51ea8be2 Fix doc typo in sharding doc (#24151) 2017-12-14 09:50:03 +01:00
Johan Andrén
582f6a4836
Revert source incompatible sharding changes (#24126)
* Revert "fix entityPropsFactory id param, #21809"
This reverts commit cd7eae28f6.
* Revert "Merge pull request #24058 from talpr/talpr-24053-add-entity-id-to-sharding-props"
This reverts commit 8417e70460, reversing
changes made to 22e85f869d.
2017-12-07 17:49:29 +01:00
Lutz Huehnken
ad57120ec2 Rename AllPersistenceIdsQuery -> PersistenceIdsQuery in docs (#24121)
* AllPersistenceIdsQuery -> PersistenceIdsQuery
* Replaced additional instances of old name allPersistenceIDs with new persistenceIDs in docs and comments
2017-12-07 10:24:33 +00:00
Patrik Nordwall
8417e70460
Merge pull request #24058 from talpr/talpr-24053-add-entity-id-to-sharding-props
Add entity id to sharding props (#24053)
2017-12-06 07:35:28 +01:00
Patrik Nordwall
b1632c9d2f
Merge pull request #24107 from akka/wip-Done-serialization-patriknw
adds serializer for akka.Done. #23854
2017-12-06 07:29:07 +01:00
Johannes Rudolph
f996731c42 =docs use stream compression in recipe (#23823)
* =docs use stream compression in recipe

* Also use Compression.gzip in scaladsl example
2017-12-05 16:46:54 +01:00
Tal Pressman
a8e5f48f36 add entity id to sharding props (#24053) 2017-12-05 16:49:05 +02:00
Elijah Rippeth
2837ebba6e adds serializer for akka.Done. #23854
(cherry picked from commit 53a543788494d7b6457f129b1ad4ff57ff530584)
2017-12-05 14:38:58 +01:00