Commit graph

21400 commits

Author SHA1 Message Date
Patrik Nordwall
0a5181c1ce EntityTypeKey in typed Cluster Sharding, #23690 2017-09-22 17:29:34 +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
Arnout Engelen
e13e26aaab Disable min-nr-of-members for ClusterSingletonProxySpec #23619, #23627 2017-09-19 09:20:52 +02:00
Arnout Engelen
062db0904e Nicer way to determine snip.akka.base_dir (#23648)
Making it consistent with akka-http
2017-09-19 10:40:47 +09:00
Johannes Rudolph
839442a118 Further stream shape cleanups (#23633)
* =str move non-boilerplaty shapes out of templates

This will improve code navigation for those classes.

 - FanInShape, FanInShape1N, UniformFanInShape
 - FanOutShape, UniformFanOutShape

* =str deprecate FanInShape1N

It was not tested, used or documented anywhere. With one input of type T0,
n inputs of type T1 and one output of type O, it is also arguably not
particularly generic to warrant its inclusion.

* !str remove unnecessary copyFromPorts implementation in Fan{In,Out}Shape

Strictly speaking this is a binary incompatible change. It would only affect
users that explicitly called `copyFromPorts` (but for what reason?).

* =str #23636 fix deprecation message not to use backticks

Backticks break genjavadoc / unidoc.

Fixes #23636.
2017-09-18 15:38:46 +02:00
Nadav Wiener
54d408b1c5 deprecate Source.combine instance method #22452 2017-09-18 08:48:57 +02:00
Sebastian Harko
a1fc508026 fix typo (#23630) 2017-09-15 18:40:52 +09:00
Szymon Chojnacki
aaf1867e0e =doc Make ActorSystem name in tutorial_1 consistent with documentation (#23629) (#23635) 2017-09-13 18:45:11 +02:00
Patrik Nordwall
120e248e6f Merge pull request #23626 from akka/wip-21732-rewrite-filesource-with-java-nio-patriknw
=str 21732 rewrite file souce with NIO and GraphStagу
2017-09-12 16:30:48 +02:00
László van den Hoek
63d9ec1c87 More consistency between UniformFanInShape and UniformFanOutShape (#23321)
* add+use UniformFanOutShape#outSeq for consistency

UniformFanInShape has inSeq, whereas UniformFanOutShape has outArray.
There's probably no good reason for this discrepancy.

* 2.5.3 is gold, deprecation would start in 2.5.4

* specialize in/outlets where possible

* review comments, binary compatibility

* optimize imports

* use Array copy internally

* give FanInShape1N the deprecation treatment

also, s/T\d/I\d/g

* delete ignored file

* process additional review comments

* make inArray fully private everywhere

* add benchmark heavy on the use of FanInShape.in()

* benchmark says: do not use Array for most n

* add JavaDoc to un-final'ed defs to not override

* change deprecated val to def; do not use it

* process patriknw's review comments
2017-09-12 16:14:20 +02:00
Alexander Golubev
000ed93576 =str 21732 rewrite file souce with NIO and GraphStagу
add MiMa excludes and additional test

add benchmark and move eclusions to 2.5.4

add future completion on stream termination
2017-09-12 14:54:41 +02:00
Guido Medina
e57cab6c85 =rem Relax Aeron CNC version check but log a warning. (#23572) 2017-09-12 11:16:10 +02:00
Martynas Mickevičius
feb333f394 =doc,release Baptising the release server (#23606)
* Baptising the release server

* Update release (#23624)
2017-09-12 11:13:25 +02:00
Patrik Nordwall
d58d6ee5bf test Scala version in a Scala 2.13 friendly manner (#23620)
for the Scala 2.13 community build
2017-09-12 10:48:15 +02:00