Commit graph

1481 commits

Author SHA1 Message Date
Patrik Nordwall
51e0bc2347 Behavior for spawning actors, #25223 (#25273)
* Behavior for spawning actors, #25223
2018-07-10 15:43:34 +01:00
Patrik Nordwall
62aaae06ca
Merge pull request #25286 from giftig/issue-25285
Fix Source.actorRef not  completing for Status.Success("ok")
2018-07-10 13:23:23 +02:00
Rob Moore
ce185c4dfc Source.actorRef not completing on Success (#25285)
When a Success is received, call onCompleteThenStop instead of just
context.stop; that takes care of the completion logic instead of just
stopping the actor and leaving the stream going.

Add test to ensure the stream materializes on Source.actorRef receiving
Status.Success

Remove tests around stream completion behaviour in response to
PoisonPill - as well as these tests not correctly demonstrating that the
completion was passed on downstream, they describe behaviour which was
previously incidental and is no longer accurate.

Update the docs to reflect that PoisonPill should not be used on the
actor ref as this scenario will necessarily result in bad behaviour as
it will be unable to signal the completion downstream.

Make a few grammar fixes and remove some trailing space while updating the
docs.
2018-07-09 22:25:32 +01:00
Christopher Batey
836347fe08 Typed persistence: Throw on persist failures, #24479
* Rather than stop so that users can add their own supervision e.g.
restartWithBackOff
* Only allow back off supervisoir for persistent behaviors
* Handle persist rejections
2018-07-09 10:57:36 +02:00
Patrik Nordwall
9cecba3455 Composable javadsl CommandHandlerBuilder, #25226 (#25227)
* Composable javadsl CommandHandlerBuilder, #25226
* CommandHandlerBuilder with stateClass and statePredicate parameters
* CommandHandlerBuilder.orElse
* Remove ActorContext from handler function signatures, can be
  passed in constructor
2018-07-06 15:35:07 +01:00
Mikko Östlund
46b433b47d Align Java sample DeviceGroupQueryTest with the Scala one #25278 2018-07-03 17:39:12 +02:00
Roman Filonenko
e6d67d8555 fix dependency blocks in documentation (#25240) (#25294) 2018-07-03 14:18:36 +02:00
Roman Filonenko
e94d011cbd populate Creating Actors section in the akka typed documentation (#25218) (#25236)
* populate Creating Actors section in the akka typed documentation (#25218)
2018-07-02 13:31:39 +01:00
Patrik Nordwall
02f6899952 example for Streams log operator (#25283)
* and added all log levels in Attributes for convenient single access point
2018-06-30 12:10:10 +09:00
Matt Kohl
33904de972 Documentation fix (#25282) 2018-06-29 13:35:24 +02:00
Patrik Nordwall
3e5b2c3f89 reword the Multi-DC Persistence reference 2018-06-26 16:57:37 +02:00
Guy Youansi
a4951e0ce7 Java time duration support for javadsl #24646
java.time.Duration support in all jdocs java file, the persistence module and the distributed-data
2018-06-26 15:41:30 +02:00
Johan Andrén
ced08fcb57 Return of the old docs banner (#25254) 2018-06-26 14:09:28 +02:00
Richard Imaoka
d8085bb424 doc Replace the word graph by operator in stream doc (#25219) 2018-06-26 11:12:05 +02:00
Christopher Batey
4bee6aa833
Typed FSM docs page (#25266)
* Typed FSM docs page

Show how the example for untyped FSM can be ported to typed
2018-06-26 06:56:50 +01:00
Jimin Hsieh
9b4b47ea8b Fix docs (#25211) 2018-06-25 18:10:37 +02:00
Arnout Engelen
fcabd43a36 Fix ActorSink.actorRef signature in docs (#25256) 2018-06-25 14:05:15 +09:00
Elijah Rippeth
4c3e34ec1d add missing signature for ActorFlow#ask in docs. (#25249) 2018-06-20 10:47:21 +02:00
Johan Andrén
360242c152 The cluster singleton manager must be started early #25247 (#25248) 2018-06-19 15:59:57 +02:00
Patrik Nordwall
0a5b12726c
Merge pull request #25246 from Camsteack/distributed-data-docs-typo
Distributed data typo documentation
2018-06-19 14:59:30 +02:00
Patrik Nordwall
1270af371a
Merge pull request #25230 from akka/wip-doc-gdpr-patriknw
Add reference to GDPR for Akka Persistence
2018-06-19 12:54:58 +02:00
Jeffrey Chung
72bd3cdfd4 Note in the docs that the zero value for fold and friends must be immutable #24971 2018-06-19 12:33:49 +02:00
Patrik Nordwall
acdb00e6f0 Add reference to GDPR for Akka Persistence
* and another link to Multi-DC Persistence
2018-06-19 10:46:47 +02:00
Camille Ballouche
26de12d0bf Fix typo in distributed data documentation related to write behind configuration. 2018-06-18 15:02:08 +01:00
Bora Kaplan
8ea9f9f32b Fixed typo on tutorial_4.md (#25238) 2018-06-18 15:21:31 +02:00
Patrik Nordwall
23506e2d3c move Cluster Aware routers to separate doc page
* had a too dominant location for historical reasons
2018-06-15 13:47:38 +02:00
Patrik Nordwall
903b1fd56b
When and where to use Akka Cluster (#25182)
* Microsystems
* Traditional distributed application
* Distributed monolith anti-pattern
2018-06-15 13:42:41 +02:00
J Evans
51c9f8ee42 fix multiple spelling error to multiply (#25222) 2018-06-11 15:03:07 +02:00
李晨曦
cab48ba699 Correct a word 'degredation' (#25207) 2018-06-06 08:43:44 +01:00
Viktor Klang (√)
eddc61af82 Documentation updates for Akka Persistence Typed (#25194)
* Switching to throwing exceptions in documentation suggestions
2018-06-05 09:49:01 +01:00
Christopher Batey
c8f4a17025
Clarify typed supervision when returning a new behavior (#25163) 2018-05-31 13:07:15 +01:00
Christopher Batey
3c12196d22
Update stream-integrations.md 2018-05-30 11:33:25 +01:00
Christopher Batey
a7d94db803 Routing docs: Fix typo and clarify group behavior (#25162) 2018-05-29 21:07:21 +09:00
Jimin Hsieh
7c3a8a8ed5 java.time.Duration APIs in javadsl.TestKit #24646 2018-05-29 12:17:48 +02:00
Richard Imaoka
a17a61557c doc Replace the word stage by operator in stream doc (#25138) 2018-05-29 10:00:48 +02:00
Richard Imaoka
84d53d1ad1 Persistence: replace initialState with emptyState (#25129) 2018-05-25 14:29:22 +02:00
Christopher Batey
8eb7b1ea81
Typed persistent event adapters/wrappers (#25050)
Typed persistent event adapters/wrappers
2018-05-25 10:23:04 +01:00
Arnout Engelen
c8064d069b
Merge pull request #25139 from ortex/fix-graph-stage-logging-docs
fix graph stage logging docs
2018-05-25 10:13:12 +02:00
Max Calderoni
c6b1f9b884 =doc wording improvement in stream-graphs.md subjunctive (#25145) 2018-05-25 14:59:59 +09:00
ortex
ea4fe1ba99 using unidoc for graph stage logging docs 2018-05-25 02:14:16 +03:00
Andrew Bushmin
6a7488fa19
fix graph stage logging docs 2018-05-23 23:29:39 +03:00
Arnout Engelen
414be2c0cb
doc Replace graph stage and processing stage by operator in .md files for stream (#25117) 2018-05-22 15:59:54 +02:00
Richard Imaoka
cbc0ee484f Reflect review comments 2018-05-22 20:57:00 +09:00
Konrad `ktoso` Malawski
de04758bb8 more docs for Sink.queue and actorRefWithAck (#25063) 2018-05-22 11:27:54 +02:00
Patrik Nordwall
e6633f17fa
Make sure Serialization.currentTransportInformation is always set, #25067
* The ThreadLocal Serialization.currentTransportInformation is used for serializing local
  actor refs, but it's also useful when a serializer library e.g. custom serializer/deserializer
  in Jackson need access to the current ActorSystem.
* We set this in a rather ad-hoc way from remoting and in some persistence plugins, but it's only
  set for serialization and not deserialization, and it's easy for Persistence plugins or other
  libraries to forget this when using Akka serialization directly.
* This change is automatically setting the info when using the ordinary serialize and deserialize
  methods.
* It's also set when LocalActorRefProvider, which wasn't always the case previously.
* Keep a cached instance of Serialization.Information in the provider to avoid
  creating new instances all the time.
* Added optional Persistence TCK tests to verify that the plugin is setting this
  if it's using some custom calls to the serializer.
2018-05-21 16:59:04 +02:00
Richard Imaoka
6ec46e762f Add example for Java typed serialization (#25007)
* Add example for Java typed serialization (#24993)
2018-05-21 15:30:44 +01:00
Jonas Chapuis
8ff81fbce7 Clarify mailbox configuration entry location in documentation (#25071) 2018-05-21 17:06:39 +03:00
Patrik Nordwall
52f24e5174 move Typed ActorMaterializer to scaladsl/javadsl, #24868
* add type alias for typed ActorMaterializer
* name it ActorMaterializerFactory in javadsl

Migration guide:
Scala:
import akka.stream.typed.ActorMaterializer -> akka.stream.typed.scaladsl.ActorMaterializer
Java:
import akka.stream.typed.ActorMaterializer -> akka.stream.typed.javadsl.ActorMaterializerFactory
2018-05-21 17:05:09 +03:00
Patrik Nordwall
b08d3acb4b Rename Typed TestKit, #25084
Artifact:
akka-testkit-typed -> akka-actor-testkit-typed

Package:
akka.testkit.typed -> akka.actor.testkit.typed

Config:
akka.typed -> akka.actor.typed
akka.testkit.typed -> akka.actor.testkit.typed
2018-05-21 11:51:51 +02:00
Richard Imaoka
984c081757 Replace processing stage with operator 2018-05-19 16:36:42 +09:00