Commit graph

52 commits

Author SHA1 Message Date
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
Philippus Baalman
6c7085252a extended copyright into 2017 2017-01-04 17:37:15 +01:00
Konrad Malawski
54ecf32d2b =htp #20915 fix too small timing issue in DirectivesSpec (#20916)
* =htp #20915 fix too small timing issue in DirectivesSpec

* applying scalariform reformatting that keeps popping up
2016-07-08 10:33:32 +02:00
Patrik Nordwall
9fbab1f268 Merge pull request #20768 from denisrosca/master
Warning for actors with value class arguments
2016-07-05 16:49:41 +02:00
Simão Martins
2a182a6c4e +doc #20794 explain Prop edge cases. (#20861)
* +doc #20794 explain Prop edge cases.

* Create a CompileOnly spec for props edge cases.
2016-07-01 11:32:20 +02:00
Denis Rosca
071b64809f Warning for actors with value class arguments
Update documentation to specify that value class arguments are not
supported for Prop creation using the recommended classOf[] approach.

Issue: #20735, #16444
2016-06-10 22:00:44 +03:00
Saeed Zarinfam
6b08767137 =doc Fix how to access deadLetters from system in actor (#20665)
When a developer copy `system.deadLetters` from documentation, it does not work in Actor and system must get from context.
2016-05-31 12:05:55 +02:00
Johan Andrén
62e30b3c08 Update copyrights and links to the new company name #19851 2016-02-23 12:58:39 +01:00
Prayag Verma
b7783968a0 =pro #19068 All copyrights ranges and single years updated to a range ending in 2016 2016-01-25 10:20:30 +01:00
Konrad Malawski
f46f9edb17 =doc fix github link as in #19434 2016-01-14 13:13:02 +01:00
Konrad Malawski
5a18d43435 +doc #19429 initial merge of docs-dev and docs 2016-01-14 00:31:03 +01:00
Johan Andrén
996ad35495 =doc #18226 document actor stopping 2015-09-08 11:14:18 +02:00
Julian Tescher
00f6a58e7c Changes all occurances of Typesafe copyright to extend to 2015 2015-03-10 14:12:19 -07:00
Roland Kuhn
a029a90502 fix warnings in contrib, docs, osgi, persistence and slf4j 2015-02-06 18:45:58 +01:00
Nikita Melkozerov
a8632befc6 =doc #16614 Include best-practice tip on messages in companion object in docs 2015-01-23 22:40:55 +05:00
Ronak Buch
d6c7ac84d9 =doc fixed spelling mistake in comment 2014-10-17 04:33:38 -05:00
dario.rexin
2cbad298d6 =all #3858 Make case classes final 2014-03-07 13:20:01 +01:00
Björn Antonsson
96be914979 Merge pull request #2052 from akka/wip-3900-systemActorOf-∂π
+act #3900 make systemActorOf available to Extensions
2014-03-04 13:32:12 +01:00
Roland Kuhn
b5eeb08fde +act #3900 make systemActorOf available to Extensions 2014-03-03 12:00:25 +01:00
Björn Antonsson
0dcb6d6654 !act,doc #3831 Adding more Java with Lambda documentation and support
* The Java with Lambda support documentation for AbstractActor and AbstractFSM are now on par with Scala
* Many small fixes and additions of missing things
* Added an AbstractActorContext that has convenience functions for getChild and getChildren
2014-03-03 10:18:58 +01:00
Konrad Malawski
b7dd2a6af5 =doc #3886 improved example of PartialFunction.orElse composition
Changed orElse composition example to better highlight it's
possibilities. This is a follow up PR based on a discussion on
akka-user: https://groups.google.com/forum/#!topic/akka-user/vVUZPMeJmzw
2014-02-20 09:19:04 +00:00
Adam Voss
cce29dfa51 Changes all occurances of Typesafe copyright to extend to 2014. 2014-02-04 21:20:09 -06:00
Björn Antonsson
179faba453 =all #3837 Make akkaScalaNightly compile on scala 2.11.0-M8 2014-01-31 14:13:02 +01:00
Patrik Nordwall
d0f9c8f2fc Merge pull request #1953 from akka/wip-3102-remove-ComposableActor-patriknw
=doc #3102 Remove ComposableActor doc sample
2014-01-22 07:32:11 -08:00
Patrik Nordwall
7bae3082aa =doc #3102 Remove ComposableActor doc sample 2014-01-22 09:18:20 +01:00
Patrik Nordwall
d506f6df4f +act #3513 Clarify gracefulStop stopMessage, and add Java API 2014-01-21 17:15:09 +01:00
Patrik Nordwall
a11fb1dafc =act #3572 Add parens to sender
* because it is not referentially transparent; normally we reserved parens for
  side-effecting code but given how people thoughtlessly close over it we revised
  that that decision for sender
* caller can still omit parens
2014-01-17 18:21:14 +01:00
Roland Kuhn
5bcb750441 !act,doc,rem,tes 3823 remove deprecated Props methods
- rewrite deprecated usages to their recommended counterparts
- TestActorRef now verifies mailbox requirements
- CallingThreadMailbox now exposes proper messageQueue type for
  inspection
2014-01-17 09:12:44 +01:00
Roland Kuhn
780831469c =doc 3764 revise recommended practice for Props creation
- it is not recommended to use Props.apply(=> Actor) within an Actor
- it is recommended to use that method in the Props factory method in
  an actor’s companion object
2014-01-16 22:44:03 +01:00
Patrik Nordwall
7648a50d53 +act #3769 Add toStringWithoutAddress to ActorPath 2014-01-15 15:05:52 +01:00
Björn Antonsson
003609c9c5 =pro #3759 Changed to using non-deprecated ScalaTest Matchers 2013-12-18 11:32:51 +01:00
Patrik Nordwall
5a019c0a7a =doc #3689 Don't rewrite arrows in doc and samples 2013-12-12 16:08:23 +01:00
Roland Kuhn
c7ac860dbc =doc fix misleading Recommended Practices
also rename recommended static method from mkProps to props for Java
2013-11-27 10:57:43 +01:00
Patrik Nordwall
1dac00a129 More props factories, see #3418 2013-05-31 08:09:56 +02:00
Roland Kuhn
9c89f170d2 Merge pull request #1490 from akka/wip-3377-Props.create-∂π
improve safety of Props.create by allowing Creator<T>, see #3377
2013-05-29 22:46:06 -07:00
Roland
f8fa825e48 improve safety of Props.create by allowing Creator<T>, see #3377
Props constructors need to be deprecated instead of being mutated
because we cannot just start throwing exceptions in people’s existing
code. Props.withCreator is deprecated for similar reasons, but also
because Props are about the creators, so replacing that after the fact
is not good style.
2013-05-29 23:40:27 +02:00
Roland
f802c94b9b remove fallback to default-dispatcher, see #3394 2013-05-28 15:40:00 +02:00
Björn Antonsson
e00ab533bb Wait on shutdown of extra actor systems in tests. See #3217 2013-05-07 11:02:03 +02:00
Roland
28aad82b1a deprecate closure-taking Props factories, see #3081
- base Props on Deploy, Class and Seq[Any] (i.e. constructor args)
- remove deprecated Props usage from akka-docs sample code
- rewrite UntypedActorDocTestBase
- rewrite Java/Scala doc section on actor creation
- add migration guide entry
2013-04-16 12:48:31 +02:00
Patrik Nordwall
887af975ae Deprecate actorFor in favor of ActorSelection, see #3074
* Deprecate all actorFor methods
* resolveActorRef in provider
* Identify auto receive message
* Support ActorPath in actorSelection
* Support remote actor selections
* Additional tests of actor selection
* Update tests (keep most actorFor tests)
* Update samples to use actorSelection
* Updates to documentation
* Migration guide, including motivation
2013-04-08 18:11:52 +02:00
Viktor Klang
fcfe7b4617 #2970 - Removing scheduler and dispatcher from ARP and reimplementing PromiseActorRef to use an internal calling thread EC 2013-04-03 19:12:03 +02:00
Rich Dougherty
f25e8bc639 Make ComposableActor example work. Fixes #2765 2013-02-21 11:44:02 +13:00
Viktor Klang
adfeb2c1f0 #2879 - updating copyright info 2013-01-09 11:38:00 +01:00
Roland
d98c4db1f9 fix up two oversights in previous doc change
- use discardOld=false also in Scala stash sample code
- correct link to UnnestedReceives sample
2012-11-06 14:15:57 +01:00
Roland
f9eb59e883 better document become semantics, see #2683 2012-11-06 11:00:27 +01:00
Roland
bff79c2f94 Merge remote-tracking branch 'origin/master' into wip-2.10.0-RC1-∂π
- currently cheating: uses zeroMQ artifacts for scala 2.10M7
- fixed a bunch of more wrong references to scala.concurrent.util
2012-10-15 16:18:52 +02:00
Viktor Klang
dbad8c85f6 Clarifying setReceiveTimeout examples after review 2012-10-15 13:49:12 +02:00
Viktor Klang
0ab417b2c1 #2612 - Clarifying ReceiveTimeout semantics in the documentation. 2012-10-14 03:35:09 +02:00
Roland
0f04239f67 move Duration classes according to scala 2.10 nightly and remove casts to FiniteDuration, see #2504 2012-10-11 15:18:10 -07:00
Björn Antonsson
08ef942242 Reformating configuration and examples for PDF (Scala, and leftovers). See #2413 2012-10-01 20:35:46 +02:00