Commit graph

494 commits

Author SHA1 Message Date
Richard Imaoka
e82d2c2817 Update deferAsync doc #20873 2017-03-30 11:34:09 +02:00
Sebastian Harko
aa5a27182e Serialization Docs: add info about adding a logger (#22618) 2017-03-30 11:31:18 +02:00
Patrik Nordwall
cdc1eddc3b Merge pull request #22577 from akka/wip-typed-IntroSpec-patriknw
add Akka Typed Java API #22293
2017-03-16 22:28:22 +01:00
Patrik Nordwall
f485be2bf5 Let typed Stateful optionally handle signals also, #22293
* and thereby no need for MessageOrSignal
2017-03-16 20:55:50 +01:00
Hawstein
6434cbe868 Re-implement javadsl testkit (#22240)
* re-implement javadsl testkit

* fix mima problem

* rebase master

* move ImplicitSender/DefaultTimeout to scaladsl

* undo the change of moving scala api

* fix return type and add doc

* resolve conflicts and add more comments
2017-03-16 20:02:47 +01:00
Patrik Nordwall
b2b4f64d97 convert typed IntroSpec to new API, #22293 2017-03-16 14:51:19 +01:00
Roland Kuhn
4368bed37a add Akka Typed Java API #22293
... and matching Scala DSL, to replace the old ScalaDSl._ object.
2017-03-16 11:52:30 +01:00
Johan Andrén
2eb226ed32 ActorContext.getParent for Java API #22413 2017-03-16 09:30:00 +01:00
Richard Imaoka
ea9617aa25 Update Persistence Snapshot documentation (#22419)
* Update Persistence Snapshot documentation (#22233)

* Use copy of ExampleState as it is mutable
2017-03-14 13:30:32 +01:00
Patrik Nordwall
f12594849b Merge pull request #22454 from jlprat/actors-mutable-state-docs-fix
Move inlined example to its own class #22453
2017-03-14 11:19:31 +01:00
Johan Andrén
7a0e5b31f8 Avoid Array.ofDim where possible #22516 2017-03-13 17:49:45 +01:00
Patrik Nordwall
3554ad7243 Merge branch 'master' into wip-traversal-oriented-layout-master-patriknw 2017-03-10 18:16:44 +01:00
Patrik Nordwall
9d3fddc326 Merge pull request #22396 from naferx/serialization-identifier
Update the maximum serializer identifier reserved for Akka
2017-03-10 10:39:01 +01:00
Johan Andrén
0775fb4a56 Two failing doctests fixed 2017-03-09 18:03:11 +01:00
Tal Pressman
1505a54038 Change Unit to NotUsed in Twitter stream example (#22511) 2017-03-09 17:36:40 +01:00
Nafer Sanabria
3e016e7887 Update the maximum serializer identifier reserved for Akka 2017-03-07 18:45:45 -05:00
Johan Andrén
c028b550f2 Low level interpreter tests working without GraphAssembly #22423 2017-03-07 17:06:41 +01:00
Konrad `ktoso` Malawski
aa2c81f49c Delete LOLSPEC.scala 2017-03-07 15:13:49 +01:00
Konrad `ktoso` Malawski
e47dbda154 =str #22448 rewrite Source.empty to GraphStage 2017-03-07 15:13:49 +01:00
Josep Prat
5102d14168 Move inlined example to its own class (#22453)
Issue: #22453
Mode inlined example for Shared Mutable State to its own class
Add additional wrong case when the message is mutable
Includes auto reformated code
2017-03-05 14:39:37 +01:00
Patrik Nordwall
b700b840d1 causal delivery of deltas, #22188
* keep track of delta interval versions and skip deltas
  that are not consequtive, i.e. when some delta message was lost
* send the delta versions in the full state gossip to sync up the
  expected versions after dropped deltas
* implementation of deltas for ORSet
* refactoring of the delta types to allow for different type for the
  delta and the full state
* extensive tests
* mima filter
* performance optimizations
* simple pruning of deltas
* Java API
* update documentation
* KeyId type alias
* Use InternalApi annotation
2017-02-22 14:27:36 +01:00
Patrik Nordwall
a17cb060ec Merge pull request #22039 from ortigali/wip-21996-RecipeGlobalRateLimit
make maxAllowedWait timeout be dilated
2017-02-21 14:06:07 +01:00
Johan Andrén
cf6d5a4e8a Deprecation of ExtensionKey #22208 2017-02-17 17:07:15 +01:00
Patrik Nordwall
96652d38b4 Merge pull request #22269 from gosubpl/wip/22187-delta-crdt-gset
GSet ported to delta-CRDT (#22187)
2017-02-16 15:45:28 +01:00
gosubpl
d470321051 GSet ported to delta-CRDT (#22187) 2017-02-16 13:06:57 +01:00
Martynas Mickevičius
958de6a916 Remove samples (#22288)
Add code, that was used for documentation to the appropriate projects
or akka-docs.
2017-02-14 12:10:23 +01:00
Patrik Nordwall
ca09f706eb Change signature of addJvmShutdownHook
* because with Scala 2.12 it can't infer the right overload
* prefer the `() =>`, but here it's clear that it's a callback
* similar in ActorSystem.registerOnTermination
2017-01-25 10:52:47 +01:00
Patrik Nordwall
ea2be84646 Merge pull request #22143 from ortigali/wip-doc-event-stream
Remove extra parameter to match constructor of Listener class
2017-01-18 17:09:17 +01:00
ortigali
d650671d34 define Listener classes as top level class and remove unused AnyRef instance 2017-01-18 17:06:34 +05:00
Patrik Nordwall
c61ed5a240 Merge pull request #22146 from akka/wip-22145-exclusive-Sequence-patriknw
use exclusive fromSequenceNumber in eventsByTag, #22145
2017-01-17 17:48:35 +01:00
Patrik Nordwall
8083c0bf4a use exclusive fromSequenceNumber in eventsByTag, #22145
* The reason is to have a consistent approach for Sequence and
  TimeBasedUUID, which are both intended as unique event identifiers.
* This means that you can use the offset that is returned in `EventEnvelope`
  as the `offset` parameter in a subsequent query.
2017-01-16 11:43:47 +01:00
Patrik Nordwall
84ade6fdc3 add CoordinatedShutdown, #21537
* CoordinatedShutdown that can run tasks for configured phases in order (DAG)
* coordinate handover/shutdown of singleton with cluster exiting/shutdown
* phase config obj with depends-on list
* integrate graceful leaving of sharding in coordinated shutdown
* add timeout and recover
* add some missing artery ports to tests
* leave via CoordinatedShutdown.run
* optionally exit-jvm in last phase
* run via jvm shutdown hook
* send ExitingConfirmed to leader before shutdown of Exiting
  to not have to wait for failure detector to mark it as
  unreachable before removing
* the unreachable signal is still kept as a safe guard if
  message is lost or leader dies
* PhaseClusterExiting vs MemberExited in ClusterSingletonManager
* terminate ActorSystem when cluster shutdown (via Down)
* add more predefined and custom phases
* reference documentation
* migration guide
* problem when the leader order was sys2, sys1, sys3,
  then sys3 could not perform it's duties and move Leving sys1 to
  Exiting because it was observing sys1 as unreachable
* exclude Leaving with exitingConfirmed from convergence condidtion
2017-01-16 09:01:57 +01:00
ortigali
c44275b8b7 remove extra parameter to match Listener constructor 2017-01-16 11:52:45 +05:00
Jeroen Gordijn
8499ff6faf #22035 Make it possible to use anything as the key in a map
- All Map types are now generic in their key: ORMap, ORMultiMap, LWWMap,
  PNCounterMap
- test for binary compatibility with previous version for serialization
- entries are sorted for deterministic SHA-1 on same value
2017-01-11 21:20:39 +01:00
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Konrad `ktoso` Malawski
067b569f85 Merge branch 'master' into wip-query-2.5 2017-01-03 17:04:48 +01:00
ortigali
3c5223650d make maxAllowedWait timeout be dilated #21996 2016-12-19 12:02:32 +05:00
Konrad Malawski
b036b555e4 =peq remove bridge from old APIs in PersistenceQuery 2016-12-15 13:00:26 +01:00
Konrad Malawski
2ab8ab2840 =21423 remove deprecated PersistentView 2016-12-15 12:31:20 +01:00
Konrad Malawski
abaa8f394e =peq #21724 #19174 unify naming of query methods 2016-12-14 14:07:56 +01:00
Richard Imaoka
3df22baf3a Fix incorrect materialized types = Unit in stream documentation (#21938)
* Fix incorrect materialized types = Unit in stream documentation (Fixes #21937)

*  Correct Int, which should be Integer in Java

* Replace BoxedUnit in stream doc
2016-12-06 15:52:54 +01:00
Patrik Nordwall
e04444567f Speedup pull request validation
* speedup ActorCreationPerfSpec
* reduce iterations in ConsistencySpec
* tag SupervisorHierarchySpec as LongRunningTest
* various small speedups and tagging in actor-tests
* speedup expectNoMsg in stream-tests
* tag FramingSpec, and reduce iterations
* speedup QueueSourceSpec
* tag some stream-tests
* reduce iterations in persistence.PerformanceSpec
* reduce iterations in some cluster perf tests
* tag RemoteWatcherSpec
* tag InterpreterStressSpec
* remove LongRunning from ClusterConsistentHashingRouterSpec
* sys property to disable multi-jvm tests in test
* actually disable multi-node tests in validatePullRequest
* doc sbt flags in CONTRIBUTING
2016-11-30 14:31:06 +01:00
Patrik Nordwall
ea84b4bfdd add LoadSnapshotFailed in snapshot protocol, #21842
* treat snapshot load failure in same way as other recovery failures
* if load of snapshot fails the persistent actor will be stopped, since
  we can't assume that a consistent state would be recovered just by
  replaying all events, since events may have been  deleted
* additional recovery docs
* improve log message
2016-11-18 10:51:35 +01:00
Olli Helenius
658b46e1cc Move (de)compression helpers to akka-stream module #21395 (#21409)
* Move (de)compression helpers to akka-stream #21395

* Move compression and decompression -related classes from
  akka-http-experimental to akka-stream
* Add Compression helper object with functions to create
  decompressing Flows
* Add a short cookbook entry

* =str move compression impl classes into their own directory (and change visibility)

* =str also expose gzip/deflate compression flows

* Fix formatting of plural ByteStrings in cookbook

* =str #21395 make compressor call Deflater.end in postStop to release resources

Also simplified the creation of the flow given a compressor.

* =str #21395 decompressors call Inflater.end in postStop to release resources

* =str #21395 smallish Scaladoc fixes
2016-11-17 22:42:37 +01:00
Patrik Nordwall
4dd969c0ae remove template pattern in howto docs (#21808) 2016-11-09 20:13:19 +01:00
Patrik Nordwall
4f013a3d1e avoid infinite blocking in TcpConnectionSpec #21375
* use socket timeout
* additional cleanup of socket utils
2016-11-09 17:36:04 +01:00
Konrad Malawski
0127d4f424 +str #18793 StageLogging that allows logger access in stages (#21696)
* +str #18793 StageLogging that allows logger access in stages
Also, non ActorMaterializers can opt-into providing a logger here.

* +str #18794 add javadsl for StageLogging

* fix missing test method on compile only class
2016-10-28 16:05:56 +02:00
Johan Andrén
33ece118a8 New EventEnvelope including Offset rather than Long #21722 2016-10-27 15:32:10 +02:00
Patrik Nordwall
aa8c253d14 improve streams actor integration docs, #21698 (#21700)
* mapAsync + ask should be the first choice
* add missing Source.queue
* prefer actorRefWithAck
* move ActorPublisher and ActorSubscriber to the end
  with additional warning
* fix wrong doc of SourceQueue offer
* and add missing java api
2016-10-26 10:24:51 +02:00
Konrad Malawski
a6a5556a8f Remove Akka-HTTP sources from akka/akka, moving to akka/akka-http! (#21690) 2016-10-18 15:17:17 +02:00