Commit graph

957 commits

Author SHA1 Message Date
Dale Wijnand
f2eec1106d Reword the "ask versus ?" typed style docs (#27390) 2019-07-23 09:25:34 +02:00
Dale Wijnand
fb653cc336 Fix some grammar in the typed style guide (#27388)
Also, use English ("for example") rather than Latin ("e.g.") in docs.
2019-07-22 15:25:01 +02:00
jeremie-seguin
950ec71294 fix typo in stream doc (#27379) 2019-07-19 09:18:08 +02:00
Johan Andrén
03b8c543fc Serialization support for wrapped stream refs (#27353) 2019-07-16 10:11:33 -07:00
Patrik Nordwall
10c2b0714a reduce message sizes for Gossip and DeltaPropagation in ddata, #27175 (#27176) 2019-07-16 14:22:16 +02:00
Johan Andrén
2626f17747
Select mailbox in Akka typed actors #27124 2019-07-16 13:52:23 +02:00
Johan Andrén
d03294d359
Align SpawnProtocol with style guide #27318 2019-07-16 11:36:12 +02:00
James Roper
511356177d Added actor termination coordinated shutdown task #27089
A convenience method that allows creating a
shutdown task by sending a message to an actor, and watching for its
termination.
2019-07-16 10:56:48 +02:00
Arnout Engelen
d3170a56ea Add fluent API for 2-stream merging (#27020)
* fluent API for 2-stream mergeLatest, mergePreferred and mergePrioritized
* Add javadocs and 'eagerClose' paramter to 'mergeLatest'
* fluent API's for
2019-07-16 10:54:18 +02:00
Johan Andrén
f0e42d2b9c
Cluster aware routers for typed #26355 2019-07-15 15:25:00 +02:00
Patrik Nordwall
6f94707cfd Style Guide: Additional sections, #22805
* Behavior factory method
  * AbstractBehavior via Behaviors.setup
* Where to define messages
* Public vs. private messages
* Singleton messages, enum
* ask vs ?
* Partial vs. total Function
* Additional naming conventions
* Lamdas vs. method references
* intro

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
2019-07-12 17:13:58 +02:00
Patrik Nordwall
32726dad5f
Merge pull request #27272 from akka/wip-22805-helloworld-patriknw
Style: Update HelloWorld sample to OO style for Java, #22805
2019-07-12 13:47:24 +02:00
Patrik Nordwall
17b192a795
Merge pull request #27322 from akka/wip-25708-test-conf-patriknw
Use application-test.conf for typed testkit, #25708
2019-07-12 13:46:01 +02:00
Patrik Nordwall
7505a13fc2 fix FIXMEs in Jackson serializer and docs (#27316) 2019-07-12 13:31:24 +02:00
Patrik Nordwall
d2d4aa96e3 Style Guide: Passing around too many parameters, #22805 2019-07-12 11:58:33 +02:00
Patrik Nordwall
af77bf3fb0 Use application-test.conf for typed testkit, #25708
* solves the problem that previously it loaded application.conf
  if no Config parameter is used, but not otherwise
* application.conf should normally not be used by tests,
  but if someone prefer that it's easy enough to use it via
  `ConfigFactory.load()` or via include in application-test.conf
2019-07-12 11:55:29 +02:00
Arnout Engelen
fe09b41ffe
Remove infinite redirect from docs (#27341)
Fixes https://github.com/akka/akka.github.com/issues/624
2019-07-12 11:17:08 +02:00
Patrik Nordwall
8f8684ae6c Doc trait+object (enum) serialization for Jackson (#27244)
* Doc trait+object (enum) serialization for Jackson

* move to separate file
2019-07-12 08:25:10 +01:00
Patrik Nordwall
2a57ec4e3d adjust Cluster in docs ToC (#27323) 2019-07-12 08:23:59 +01:00
Patrik Nordwall
3efc1c2877
Disable Java serialization by default, #22333 (#27285)
* akka.actor.allow-java-serialization = off
* Moved primitive (Long, Int, String, ByteString) serializers
  from akka-remote to akka-actor since they had no dependency
  and are useful also in local systems, e.g. persistence.
  * e.g. needed for persistence-tck
  * less allow-java-serialization=on in tests
* CborSerializable in Jackson/test module for ease of use
* JavaSerializable for Java serialization in tests, already in akka-testkit,
  but misconfigured
* Made tests pass
  * allow-java-serialization=on in akka-persistence
  * allow-java-serialization=on in classic remoting tests
  * JavaSerializable and CborSerializable in other remoting tests
* Added serialization for
  * Boolean
  * java.util.concurrent.TimeoutException, AskTimeoutException
* support for testing serialization with the inmem journal
* utility to verifySerialization, in SerializationTestKit
* remove AccountExampleWithCommandHandlersInState becuase not possible to serialize State when it's not static
  * Effect() is factory in EventSourcedBehavior  class
* test the account examples
* SharedLeveldbJournal.configToEnableJavaSerializationForTest
* support for exceptions from remote deployed child actors
  * fallback to akka.remote.serialization.ThrowableNotSerializableException
    if exception is not serializable when wrapped in system messages from
    remote deployed child actors and Status.Failure messages
  * it's implemented in `WrappedPayloadSupport.payloadBuilder`
* update reference documentation
* serialize-messages=off in most places, separate ticket for
  improving or removing that feature
* migration guide, including description of rolling update

* fix 2.13 compiler error

* minor review feedback
2019-07-11 14:04:24 +02:00
Patrik Nordwall
8d69388d0a Deprecate classic remoting classes (#27237)
* Sprinkle deprecated annotation to public classes for classic remoting
* Use right dispatcher setting for a few remoting actors
* New Artery events for QuarantinedEvent, GracefulShutdownQuarantinedEvent
  and ThisActorSystemQuarantinedEvent because old were not good
  and would cause binary compatibility trouble when we remove classic
* silence more deprecation warnings
2019-07-10 14:26:51 +02:00
Patrik Nordwall
041db6f549 Rename widen to transformMessages, #27253 2019-07-10 14:17:59 +02:00
Patrik Nordwall
e5dbd939be
Merge pull request #27256 from akka/wip-26684-additional-bindings-patriknw
Remove additional-serialization-bindings, #26684
2019-07-10 12:14:37 +02:00
Arnout Engelen
8e952fa3a4
Update paradox-apidoc (#27270)
For easier referencing of typed javadsl/scaladsl classes
2019-07-10 08:11:31 +02:00
Patrik Nordwall
5388a65679
Style Guide: Functional vs object-oriented style, #22805 (#27271) 2019-07-09 18:33:38 +02:00
Helena Edelson
4178050669 Minor spelling fix in doc (#27297)
* Fixed typo.

* More of the same spelling fixes.
2019-07-09 09:55:58 +02:00
Christopher Batey
d4167bc930
Re-write file sink as a graph stage (#27247)
* Re-write file sink as a graph stage

Refs #26187
2019-07-08 08:54:59 +01:00
eyalfa
14c02302bc Akka 27103/streams zip all #27103 2019-07-05 16:40:06 +02:00
Christopher Batey
b9f02aba0c Deprecation removal hunt (#27250) 2019-07-05 13:16:51 +02:00
Patrik Nordwall
3f4179c316 Remove additional-serialization-bindings, #26684
This should be safe for a rolling update between Akka 2.5.x and 2.6.0
also if additional-bindings were disabled in 2.5.x because:
* if 2.6.0 sends one of those the serializer (akka-misc) exists in 2.5.x
  so deserialization will work via the serializerId
* if 2.5.x sends one of those with java serialization it can be
  deserialized in 2.6.0 since the java serializer exists
  (disabling java serialization by default is another ticket)

* historical problems with serialization of remote Deploy messages
  in Akka 2.4.x should be gone now
2019-07-05 13:12:36 +02:00
Christopher Batey
7c151a4279 Pattern for responding to a sharded actor (#27077) 2019-07-05 10:29:23 +02:00
Christopher Batey
1dfe55fcc3 Typed Stash: Create via factory method on Behaviors (#27200)
* changing to trait in javadsl
2019-07-05 10:28:07 +02:00
Patrik Nordwall
72680e93bf EventSeq in Typed EventAdapter (#27130)
EventSeq in Typed EventAdapter, refs #26909
2019-07-05 09:46:10 +02:00
Patrik Nordwall
ae6bf2d4bd Style: Update HelloWorld sample to OO style for Java, #22805
* and use create/apply behavior factory method naming
2019-07-05 08:30:48 +02:00
Johan Andrén
beb35bf12d
First step in restructuring the docs for 2.6 #26487 2019-07-05 08:21:38 +02:00
Patrik Nordwall
7a16403f1b
Merge pull request #27246 from 2m/wip-expect-no-message-sub-2m
Add expectNoMessage to subscriber probe
2019-07-04 14:49:14 +02:00
Martynas Mickevičius
f75f1943a2
Add expectNoMessage to subscriber probe 2019-07-04 13:52:53 +03:00
Patrik Nordwall
310b861d69
Merge pull request #27178 from akka/wip-typed-testkit-docs-patriknw
move synchronous behavior testing docs
2019-07-04 11:01:15 +02:00
Patrik Nordwall
76c3271575
Support same dispatcher as parent in Typed, #27123 (#27127)
* Support same dispatcher as parent in Typed, #27123

* remove apply in internal DispatcherDefault and DispatcherSameAsParent
2019-07-04 11:00:04 +02:00
Patrik Nordwall
d2cae7d345 Remove Behavior.orElse, #26867 (#27252)
* kept part of OrElseSpec to illustrate composition with
  functions or partial functions
* added an experiment with and interceptor that
  delegates to behaviors
2019-07-03 09:23:05 +02:00
Patrik Nordwall
64fa2979ea
ClassTag in BehaviorInterceptor, #25887 (#27148)
* Always be explicit about what message types an interceptor can handle, to avoid
  ClassCastException if another message type is passing. That may happen when
  the inner behavior understands other messages than it says in it's declared
  behavior type by using narrow. EventSourcedBehaviorImpl is an example.
* Minimized failing tests
* Supervision interceptor is of type Any since failures of all messages must be
  handled
* Changed PoisonPillInterceptor to only intercept signals
* rename type params to Outer and Inner
* separate BehaviorSignalInterceptor
  * which only intercepts signals and messages bypass, e.g. PoisonPillInterceptor
  * also made aroundSignal optional to override in BehaviorInterceptor
* Add test for interceptors combined with EventSourcedBehavior
* ClassTag not needed for LogMessagesInterceptor
  * since it can handle Any
* test supervision of different message type
* clarify low level
* docs for interceptMessageClass param and ClassTag
* remove O type parameter in supervision
* remove extra setup for RestartSupervisor, already factory
* mention in migration guide
2019-07-02 17:49:48 +02:00
Arnout Engelen
a36ec1260d Move a couple of Akka Streams examples to their own files (#26703) 2019-07-02 16:54:53 +02:00
Patrik Nordwall
e3dc7b16b3
Merge pull request #27005 from akka/documentSourceApply
Merge Source.apply and Source.from docs
2019-07-02 13:43:00 +02:00
Christopher Batey
200b07e534
Re-write InputStreamSource as GraphStage (#26811)
* Re-write InputStreamPublisher as a GraphStage
* Deprecate IOResult.failure and introduce IOOperationIncompleteException

After some dicussion with @johanandren, @raboof and @2m about the
confusion of the materialised value of the IO streams to complete
even if there is an exception (with the exception in the IOResult)
this now changes it to:

* Deprecate failure in IOResult so it is always set to Success(Done)
* Stop using AbrubtIOTerminationException as the inner IOResult also
contains an exception causing confusion
2019-07-02 10:46:16 +01:00
Patrik Nordwall
0adea81da1 move synchronous behavior testing docs
* readers tend to try what is at the top of the page
  and given the limitations of BehaviorTestKit we
  should show the full featured asyncronous TestKit first
* mention test framework integration earlier
* better example in the test framework section
2019-07-01 13:40:38 +02:00
Christopher Batey
cfed2512d7
update modules list for akka enhancements (#27229)
* update modules list for akka enhancements
2019-07-01 07:57:50 +01:00
Ignasi Marimon-Clos
7766e922e0 Fixes same typo mutiple times (#27236) 2019-06-28 14:48:55 +01:00
Johan Andrén
4af031c9a5
ActorHierarchyExperiments: Send a start message to the first actor (#27204) 2019-06-27 20:54:09 +01:00
Patrik Nordwall
b53469500b
Reduce boilerplate for interaction with Typed Replicator #27116 (#27118)
* Reduce boilerplate for interaction with Typed Replicator #27116

* By introducing a message adapter "helper" that is specific the Replicator
* Specific methods for askUpdate, askGet and askDelete, subscribe, unsubscribe

* add thread safetey warnings

* DistributedData.withReplicatorMessageAdapter for creating the ReplicatorMessageAdapter
2019-06-27 16:56:21 +01:00
Stefan Ganzer
e59819a4cd ActorHierarchyExperiments: Send a start message to the first actor (#27204)
* Send a `start` message to the first actor

Otherwise, only the actor system is started, but none of the actors.

* Send a `start` message to the first actor

Otherwise, only the actor system is started, but none of the actors.
2019-06-27 16:17:36 +01:00