Commit graph

20 commits

Author SHA1 Message Date
Patrik Nordwall
10d32fceb9 scheduleWithFixedDelay vs scheduleAtFixedRate, #26910
* previous `schedule` method is trying to maintain a fixed average frequency
  over time, but that can result in undesired bursts of scheduled tasks after a long
  GC or if the JVM process has been suspended, same with all other periodic
  scheduled message sending via various Timer APIs
* most of the time "fixed delay" is more desirable
* we can't just change because it's too big behavioral change and some might
  depend on previous behavior
* deprecate the old `schedule` and introduce new `scheduleWithFixedDelay`
  and `scheduleAtFixedRate`, when fixing the deprecation warning users should
  make a concious decision of which behavior to use (scheduleWithFixedDelay in
  most cases)

* Streams
* SchedulerSpec
  * test both fixed delay and fixed rate
* TimerSpec
* FSM and PersistentFSM
* mima
* runnable as second parameter list, also in typed.Scheduler
* IllegalStateException vs SchedulerException
* deprecated annotations
* api and reference docs, all places
* migration guide
2019-06-05 11:38:04 +02:00
Christopher Batey
efc3adc08d
Make artery the default remoting (#26772) 2019-05-01 08:12:09 +01:00
hepin1989
998c5a9285 Formatting java codes with sbt-java-formatter. 2019-01-12 04:00:53 +08:00
kerr
cc19367588 More Java getters for akka.actor.AbstractActor.ActorContext #26161 2019-01-09 20:13:56 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
kerr
b7f3cbef94 Merge PatternsCS to Patterns (#26008)
* !act Move some Java API methods from PatternsCS to Patterns.

* Deprecate PatternCS and in favor of Patterns.
2018-12-06 15:40:43 +01:00
kerr
fafc59b19d update headers to regular comment (#25807) 2018-10-29 05:19:37 -04:00
Richard S. Imaoka
5dd487311d Add more description about ClusterEvent.InitialStateAsSnapshot (Closes #25172) 2018-09-18 14:56:26 +09:00
Justin Pihony
b1904325ca Add ClusterSingleton supervision documentation (#25419)
* Add ClusterSingleton supervision documentation

* Make example code compilable

* Changed snip per comment

* Back to double snip
2018-08-08 16:24:48 +09:00
Guy Youansi
759010f0cd +act add java.time.Duration support Actor javadsl (#24993)
* add java support in akka-actor module in the class Abstract.ActorContext by adding the setReceiveTimeout and CancelReceiveTimeout

* add akka.actor.AbstractActor#ActorContext cancelReceiveTimeout and setReceiveTimeout to mima-excludes file

* removed scala.concurrent.duration dependency in ActorDocTest and add new method expectTerminated with java.time.Duration support in TestKit

* used java.time.Duration as default import
2018-05-14 17:22:02 +09:00
Richard Imaoka
e343222505 Sample code for joinSeedNodes programatically #24041 2018-04-30 10:21:35 +02:00
Patrik Nordwall
6a9fa1946d
Add java.time.Duration support in the JavaDSL in akka-actor module #24646 (#24883)
* Add java.time.Duration support in the JavaDSL in akka-actor module #24646
* add deprecation and change retry
2018-04-11 16:47:36 +02:00
Konrad `ktoso` Malawski
563c7fbcf0 Issue 24594: Integration with sbt-headers and initial header population 2018-03-13 15:45:55 +01:00
Arnout Engelen
c05dd26700 Use getWhenTerminated in Java examples (#24428)
* Use getWhenTerminated in Java examples

Introduced in #24330

* Fix compilation error
2018-01-29 18:05:11 +09:00
Christopher Batey
009214ae07
Update copyright to 2018 (#24241) 2018-01-04 17:26:29 +00:00
Patrik Nordwall
6ed3295acd Merge branch 'master' into wip-multi-dc-merge-master-patriknw 2017-08-31 10:51:12 +02:00
Sébastien Lorion
a95a94acff Replace ClusterRouterGroup/Pool "use-role" with "use-role-set" #23496 2017-08-09 16:06:18 +02:00
Patrik Nordwall
87d74f1510 Docs for multi-DC features 2017-07-07 16:55:22 +02:00
Richard Imaoka
6c1d82a4e6 Merge paradox/scala/cluster-metrics.md and java/cluster-metrics.md (#23098)
* Identical contents in scala/cluster-metrics.md and java/cluster-metrics.md for easier review

* Replace java/cluster-metrics.md with a symlink to scala/cluster-metrics.md

* Fix typo
2017-06-07 01:43:18 -07:00
Patrik Nordwall
59f53e1a22 move code to src/test
* so that it compiles and tests pass
* fix some additional snip references in getting started
2017-05-11 17:36:45 +02:00