=clu #18245 Improve registerOnMemberRemoved example
This commit is contained in:
parent
569b18d56e
commit
13f5b255f3
5 changed files with 40 additions and 19 deletions
|
|
@ -339,7 +339,7 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
|
||||
/**
|
||||
* The supplied thunk will be run, once, when current cluster member is `Removed`.
|
||||
* and if the cluster have been shutdown,that thunk will run on the caller thread immediately.
|
||||
* If the cluster has already been shutdown the thunk will run on the caller thread immediately.
|
||||
* Typically used together `cluster.leave(cluster.selfAddress)` and then `system.shutdown()`.
|
||||
*/
|
||||
def registerOnMemberRemoved[T](code: ⇒ T): Unit =
|
||||
|
|
@ -347,7 +347,7 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
|
||||
/**
|
||||
* Java API: The supplied thunk will be run, once, when current cluster member is `Removed`.
|
||||
* and if the cluster have been shutdown,that thunk will run on the caller thread immediately.
|
||||
* If the cluster has already been shutdown the thunk will run on the caller thread immediately.
|
||||
* Typically used together `cluster.leave(cluster.selfAddress)` and then `system.shutdown()`.
|
||||
*/
|
||||
def registerOnMemberRemoved(callback: Runnable): Unit = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue