!clu #3920 Remove deprecated Cluster.publishCurrentClusterState
This commit is contained in:
parent
4b977361eb
commit
503c4ced8f
5 changed files with 14 additions and 47 deletions
|
|
@ -249,24 +249,13 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
clusterCore ! InternalClusterAction.Unsubscribe(subscriber, Some(to))
|
||||
|
||||
/**
|
||||
* Publish current (full) state of the cluster to subscribers,
|
||||
* that are subscribing to [[akka.cluster.ClusterEvent.ClusterDomainEvent]]
|
||||
* or [[akka.cluster.ClusterEvent.CurrentClusterState]].
|
||||
* If you want this to happen periodically you need to schedule a call to
|
||||
* this method yourself.
|
||||
*/
|
||||
@deprecated("Use sendCurrentClusterState instead of publishCurrentClusterState", "2.3")
|
||||
def publishCurrentClusterState(): Unit =
|
||||
clusterCore ! InternalClusterAction.PublishCurrentClusterState(None)
|
||||
|
||||
/**
|
||||
* Publish current (full) state of the cluster to the specified
|
||||
* Send current (full) state of the cluster to the specified
|
||||
* receiver. If you want this to happen periodically you need to schedule
|
||||
* a call to this method yourself. Note that you can also retrieve the current
|
||||
* state with [[#state]].
|
||||
*/
|
||||
def sendCurrentClusterState(receiver: ActorRef): Unit =
|
||||
clusterCore ! InternalClusterAction.PublishCurrentClusterState(Some(receiver))
|
||||
clusterCore ! InternalClusterAction.SendCurrentClusterState(receiver)
|
||||
|
||||
/**
|
||||
* Try to join this cluster node with the node specified by 'address'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue