Commit graph

21412 commits

Author SHA1 Message Date
Kirill Yankov
dfd94d3aea New implementation of expectNoMsg in TestKit #23224 2017-09-25 16:37:47 +02:00
Patrik Nordwall
cd4ee59cc8 Add parameter eagerClose to Flow.interleave #22710 (#23718)
* overloaded methods added for binary compatibility
* Doc improve: remove unnecessary example, reword eagerClose description
* Test eagerClose = true when other stream closed
2017-09-25 23:26:54 +09:00
Guido Medina
9df5d80268 Java 9 Unsafe access to String value type mismatch. (#23710)
It needs to account for both Java 8 and 9 where the types are char[] and byte[] respectively.
2017-09-25 23:22:49 +09:00
gosubpl
9d7b81f11c fix issue with vvector handling in ORSet.mergeRemoveDelta #22890 2017-09-25 16:16:20 +02:00
Patrik Nordwall
12196d674e enforce same DC for isOlderThan, #23307 (#23625) 2017-09-25 11:50:28 +02:00
Christopher Batey
b43bdc49d8 Merge pull request #23713 from chbatey/docs-mjvm-link
=doc Fix multi jvm sample link
2017-09-25 10:21:19 +01:00
Rafał Sumisławski
d4c929d771 Make sending messages to dead letters by DistributedPubSubMediator configurable. #23462 (#23615) 2017-09-25 11:15:06 +02:00
Christopher Batey
d8cd40d250 =doc Fix multi jvm sample link 2017-09-25 09:46:25 +01:00
Christopher Batey
4669b4854d Fix minor docs typo (#23709) 2017-09-24 19:15:15 +02:00
Cause Chung
5892c2a569 Add more doc for framing on tcp streaming #23325 2017-09-23 12:09:05 +02:00
Patrik Nordwall
cd84f7006a Merge pull request #23705 from akka/wip-23690-sharding-EntityTypeKey-patriknw
EntityTypeKey in typed Cluster Sharding, #23690
2017-09-22 18:26:47 +02:00
Patrik Nordwall
0a5181c1ce EntityTypeKey in typed Cluster Sharding, #23690 2017-09-22 17:29:34 +02:00
Patrik Nordwall
b9461b721d Merge pull request #23700 from akka/wip-typed-sharding-patriknw
=typ,clu akka typed cluster sharding, #23698
2017-09-22 17:11:41 +02:00
Konrad `ktoso` Malawski
386289ee70 =typ,clu akka typed cluster sharding, #23698 2017-09-22 16:45:18 +02:00
Patrik Nordwall
01de74cf41 Merge pull request #23692 from akka/wip-cleanup-patriknw
provided cluster dependencies in Akka Typed
2017-09-22 16:39:07 +02:00
Patrik Nordwall
5718795aa7 Merge pull request #23644 from hseeberger/23640-actor-signal
Add signal method to Akka Typed DSL (closes #23640)
2017-09-22 16:19:44 +02:00
Patrik Nordwall
579b56a0ee provided cluster dependencies in Akka Typed
* and some additional cleanup
* on my mac upd doesn't work unless loopback address is used
2017-09-22 16:15:24 +02:00
Johan Andrén
846cfe0416 Typed library-extensions were loading the wrong thing (#23701)
* Typed library-extensions were loading the wrong thing

* And that actual fix...

* Formatting
2017-09-22 16:07:06 +02:00
Johan Andrén
ad103db43c Typed actorref serializer to allow for java serialization of messages (#23696)
* typed actorref serializer to allow for java serialization of messages

* review adressed
2017-09-22 15:35:53 +02:00
Patrik Nordwall
9388c69b50 Merge pull request #23688 from akka/andThenWithoutStateParameter
Add 'def andThen(callback: ⇒ Unit)'
2017-09-22 14:57:34 +02:00
Arnout Engelen
f7789103a2 Add 'def andThen(callback: ⇒ Unit)'
Cleans up the examples a bit, though it might make it easier to accidentally
look at the old state rather than the updated state.
2017-09-22 14:13:21 +02:00
Patrik Nordwall
61bbfbf040 Merge pull request #23674 from akka/wip-22273-typed-persistence-patriknw
Persistence API for Akka Typed, #22273
2017-09-22 13:52:44 +02:00
Patrik Nordwall
0c5440c036 Some additional api adjustments, #22273
* rename PersistentEffect to Effect
* change order of parameters, ctx first
* rename onEvent to applyEvent
* persistenceIdFromActorName for Cluster Sharding
* PersistenActor.immutable
2017-09-22 13:52:02 +02:00
Arnout Engelen
6d94eb426b Chaining side effects (callbacks and stopping)
Cleans up the API in a couple of places, but still needs type parameters
in spots where I wouldn't want to need them...

Allow multiple side effects in one 'andThen'

Making type inference actually work

Allow applying multiple side effects

In a way that allows 'inspecting' the effects if you want to, but
doesn't require you to repeat generic parameters when you don't.
2017-09-22 12:44:30 +02:00
Patrik Nordwall
7c1e5f3396 impl and test of signals 2017-09-22 12:44:30 +02:00
Arnout Engelen
25567ea868 Move ApiTest to PersistentActorCompileOnlyTest 2017-09-22 12:44:30 +02:00
Patrik Nordwall
b671d2a47b first impl of Typed PersistentActor, #22273
* illustrate problem with wrapping behavior
2017-09-22 12:44:03 +02:00
Arnout Engelen
be26edeb04 Some experiments with a typed api for persistence
* Expand example with a timer
* Move 'onRecoveryComplete' to 'builder' style
* rather than using a default parameter which is hard to
  evolve with binary compatibility
* Explicit snapshots
* Example spawning a child actor
* Taking a snapshot needs access to the state
* Added signal handler
* I like how simple the types of `commandHandler` and
 `signalHandler` are now, but it'd be nice if they were closer together and could perhaps even share the `state` switch. I'll give that a try.
* Attempt to get signal handling closer to command handling
* Always use the full state for snapshots
* If you want to add a mapping layer use event adapters or a custom
  serializer.
* Example of an actor that separates 'persistent' and transient state
* Use ordering 'command, event, state, context' consistently
* Allow multiple `andThen`
* Replace ask with spawned adapters
* Allow 'andThen' on each PersistentEffect
* Make 'onSignal' a partial function
* Remove unnecessary parens
* Simplify 'andThen', make sure it receives the State
2017-09-22 12:44:02 +02:00
Johannes Rudolph
c2e45fa6dc =type Cluster and local Receptionist, #23634
* a Receptionists extension

It's basically an improved copy of the former receptionist pattern which is
removed here as well.

* Cluster implementation using Distributed Data

* =typ make ActorRef.apply work for adapted actor systems
2017-09-22 11:38:07 +02:00
Heiko Seeberger
0d92122cbb Add onSignal behavior factory to Akka Typed DSL (closes #23640) 2017-09-21 22:26:31 +02:00
Johan Andrén
c31f6b862f cluster apis for typed, #21226
* Cluster management (join, leave, etc)
* Cluster membership subscriptions (MemberUp, MemberRemoved, etc)
* New SelfUp and SelfRemoved events
* change signature of awaitAssert to return the value (not binary compatible)
* Cluster singleton api
2017-09-21 17:58:29 +02:00
Patrik Nordwall
94f0492873 Merge pull request #23647 from akka/wip-typed-ddata-patriknw
Distributed Data API for Akka Typed
2017-09-21 13:14:13 +02:00
Konrad `ktoso` Malawski
0020e27f76 Add Code of Conduct, inspired by Play Framework's (#23673)
* Add Code of Conduct, inspired by Play framework's

* Update CODE_OF_CONDUCT.md

* Update CODE_OF_CONDUCT.md

* We also invite people not from companies
2017-09-21 19:23:19 +09:00
Kyle Song
280fcc9f37 =doc Remove duplicated 'to be's. issue #23646 (#23671) 2017-09-21 10:20:07 +09:00
Arnout Engelen
699a11144e Avoid side effect in ActorGraphInterpreter#toString #23656 2017-09-20 14:27:29 +02:00
Konrad `ktoso` Malawski
349a5f749a =jdk9,str JDK9 ready classes, in special directories (#23650)
* =jdk9,str JDK9 ready classes, in special directories

* =str,jdk9 prepare for releasing using JDK9 (needs sbt 1.0+ though)

* =str,jdk9 passing TCK spec touching some JDK9 types internally

* make sure to include linting options
2017-09-20 21:06:49 +09:00
Patrik Nordwall
6d78e30e1c DistributedData extension 2017-09-20 13:49:36 +02:00
Patrik Nordwall
8b2bde1396 convenience for ask 2017-09-20 13:20:39 +02:00
Patrik Nordwall
9eb8d3f853 add remaining commands 2017-09-20 13:20:39 +02:00
Patrik Nordwall
eee449ccb3 incorporate feedback 2017-09-20 13:20:39 +02:00
Patrik Nordwall
20fce37665 Subscribe 2017-09-20 13:20:39 +02:00
Patrik Nordwall
9496b59289 first stab at javadsl for Typed ddata 2017-09-20 13:20:39 +02:00
Patrik Nordwall
341d4e5ba9 WIP ddata api for Akka Typed 2017-09-20 13:20:39 +02:00
Changwon Choe
9bd6ca4c8b Fixed a typo in a toc in the guide (#23660) 2017-09-20 13:02:30 +02:00
Patrik Nordwall
d0067b30dc Merge pull request #23612 from akka/wip-typed-remote-patriknw
Remoting for Akka Typed, #21225
2017-09-20 12:24:13 +02:00
Johan Andrén
925cc163f7 First test for Akka Typed remoting, #21225 2017-09-20 10:57:24 +02:00
Arnout Engelen
62620b3ac2 Disambiguate 'position' and 'limit' calls (#23659) 2017-09-20 10:36:12 +02:00
Konrad `ktoso` Malawski
9965fc592b =act small compilation fixes for JDK9 (#23658) 2017-09-20 16:24:29 +09:00
Johannes Rudolph
3307b3522c =str hide deprecated lazy vals behind def in FanInShape et al (#23655)
To avoid genjavadoc issue https://github.com/typesafehub/genjavadoc/issues/85.
2017-09-19 15:38:12 +02:00
Patrik Nordwall
5f059d18b5 Add AbstractPersistentActorWithTimers, #23652 (#23653) 2017-09-19 13:04:09 +02:00