!clu #3920 Remove deprecated Cluster.publishCurrentClusterState

This commit is contained in:
Patrik Nordwall 2014-03-12 11:38:09 +01:00
parent 4b977361eb
commit 503c4ced8f
5 changed files with 14 additions and 47 deletions

View file

@ -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'.