Commit graph

1481 commits

Author SHA1 Message Date
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
Christopher Batey
9c0cece7de Clarify remembered entities limit is for active entities (#27221) 2019-06-27 16:07:34 +01:00
Arnout Engelen
d758e746d1
Fix paradox anchor references (#27226)
* Fix paradox anchor references

Found by https://github.com/lightbend/paradox/pull/326

* Remove duplicate anchors in paradox docs

Found by https://github.com/lightbend/paradox/pull/328
2019-06-27 16:05:24 +01:00
Patrik Nordwall
50e99e08d8 Use short configurable timeout for expectNoMessage #27212 (#27213)
* Use short configurable timeout for expectNoMessage #27212

* consistent with ActorTestKit in Typed

* fix config
2019-06-26 15:35:20 +01:00
Simon
c932582238 Update deploy.md to avoid Maven generating erroneous tags (#27199)
According to this: https://stackoverflow.com/a/56154292/3715185, adding an id to the execution configuration can help to keep Maven from generating erroneous tags in the effective pom, such as adding a `<resource>` tag to the `ManifestResourceTransformer`.
2019-06-24 13:15:05 +02:00
Pritam Kadam
759673569a Adding WatchedWith effect in akka actor typed testkit #27190 (#27195) 2019-06-21 07:59:32 -07:00
Helena Edelson
59f1a05819
Docs: make rolling restarts/upgrades/updates more prominent, easier to find #27039 (#27186) 2019-06-21 07:33:32 -07:00
Helena Edelson
25b5daa617
Akka Typed Add example of how to java getSelf for persistence typed #27061 (#27196) 2019-06-21 07:30:33 -07:00
Helena Edelson
611e32de91 Disable remote watch and remote deployment outside Cluster (#27126) 2019-06-21 14:15:36 +02:00
Patrik Nordwall
8757e35b7e Don't passivate idle for remembering entities (#27177) 2019-06-21 04:40:25 -07:00
Helena Edelson
37abbea118
Merge pull request #27174 from akka/wip-artery-port-patriknw 2019-06-20 16:12:16 -07:00
yiksanchan
a09d7e27be Fix typo (#27187) 2019-06-20 14:57:37 +02:00
Helena Edelson
eab2b96bd7
Merge pull request #27173 from akka/wip-27172-increase-fd-nodes-patriknw 2019-06-20 04:22:10 -07:00
yiksanchan
a50a06845a Fix grammar (#27185) 2019-06-20 08:18:08 +02:00
Patrik Nordwall
f2dd10ceb9 Mention Artery port 25520 in migration guide 2019-06-18 18:40:03 +02:00
Patrik Nordwall
8752a3acdb increase monitored-by-nr-of-members config, #27172 2019-06-18 18:28:37 +02:00
Charies Gavin
d50674ab49 Doc improvements (#27166)
* cluster-metrics.md - delete duplicate dependency content
* futures.md - delete a redundant parentheses
* event-bus.md - delete redundant descriptions of event-bus
* howto.md - Set keywords in highlighted format
2019-06-18 13:34:45 +02:00
Christopher Batey
21c34361cd Fix error in sharding message flow description (#27161) 2019-06-18 12:01:11 +02:00
Enno
be67fb2ce5 Revise modules listing (#27146) 2019-06-17 18:28:30 +02:00
Patrik Nordwall
51789515f2
Merge pull request #27144 from akka/bundling
Consolidate 'fat jar' docs
2019-06-17 13:05:15 +02:00
Arnout Engelen
1177afe887
Consolidate 'fat jar' docs (#24248)
This moves the Maven documentation from the 'configuration' section to the
'deploy' section, and adds documentation for Gradle.

A further improvement would be to split up the current 'deploy' docs and
separate 'bundling' from 'deploying', but that is for a future PR.
2019-06-14 11:30:53 +02:00
Patrik Nordwall
beaa80b773
Merge pull request #26813 from akka/wip-26709-ask-ExpectingReply-patriknw
Type inference for EntityRef.ask, #26709
2019-06-14 11:18:26 +02:00
Christopher Batey
31def7049a Make Behaviors.intercept a factory () => BehaviorInterceptor, #26728 (#27102) 2019-06-14 11:16:12 +02:00
Patrik Nordwall
9e2ea2579b Type inference for EntityRef.ask, #26709
* move AccountExample to Sharding, to be able to test with EntityRef etc
* add tests for AccountExample
* for javadsl there is a problem
* explicity replyTo type solves javadsl issue
* use EventSourcedEntity.withEnforcedReplies
* try replyTo with super type AccountCommandReply
* Reply <: AccountCommandReply
* replace lambda with method (constructor) reference
2019-06-14 10:16:33 +02:00
Christopher Batey
dd13f559b8 Fix entity ref link in migration guide 2019-06-14 08:58:26 +01:00
Christopher Batey
a871176fd6 Use Duration in javadsl.EntityRef.ask (#27098)
Refs #26812
2019-06-14 09:17:19 +02:00
Patrik Nordwall
6660e8504a
Remove Jackson Smile format, #24155 (#27105)
* No clear advantage over CBOR
* One less choice for users
* CBOR seems to have a stronger specification and therefore potential
  for wider adoption
* Performance of CBOR is equals to Smile
* Smile can be slightly more compact
  (I think it does more to reduce repeated field names),
  but that might be better to solve with good compression
2019-06-13 17:40:24 +02:00