Package akka.cluster
Class ClusterEvent
- java.lang.Object
-
- akka.cluster.ClusterEvent
-
public class ClusterEvent extends java.lang.ObjectDomain events published to the event bus. Subscribe with:Cluster(system).subscribe(actorRef, classOf[ClusterDomainEvent])
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceClusterEvent.ClusterDomainEventMarker interface for cluster domain events.static classClusterEvent.ClusterShuttingDown$This event is published when the cluster node is shutting down, before the finalClusterEvent.MemberRemovedevents are published.static classClusterEvent.CurrentClusterStatestatic classClusterEvent.CurrentClusterState$static classClusterEvent.CurrentInternalStats$static interfaceClusterEvent.DataCenterReachabilityEventDeprecated.Use Akka Distributed Cluster instead.static classClusterEvent.InitialStateAsEvents$When using this subscription mode the events corresponding to the current state will be sent to the subscriber to mimic what you would have seen if you were listening to the events when they occurred in the past.static classClusterEvent.InitialStateAsSnapshot$When using this subscription mode a snapshot ofClusterEvent.CurrentClusterStatewill be sent to the subscriber as the first message.static classClusterEvent.LeaderChangedLeader of the cluster data center of this node changed.static classClusterEvent.LeaderChanged$static classClusterEvent.MemberDownedMember status changed toMemberStatus.Downand will be removed when all members have seen theDownstatus.static classClusterEvent.MemberDowned$static interfaceClusterEvent.MemberEventMarker interface for membership events.static classClusterEvent.MemberExitedMember status changed toMemberStatus.Exitingand will be removed when all members have seen theExitingstatus.static classClusterEvent.MemberExited$static classClusterEvent.MemberJoinedMember status changed to Joining.static classClusterEvent.MemberJoined$static classClusterEvent.MemberLeftMember status changed to Leaving.static classClusterEvent.MemberLeft$static classClusterEvent.MemberPreparingForShutdownstatic classClusterEvent.MemberPreparingForShutdown$static classClusterEvent.MemberReadyForShutdownstatic classClusterEvent.MemberReadyForShutdown$static classClusterEvent.MemberRemovedMember completely removed from the cluster.static classClusterEvent.MemberRemoved$static classClusterEvent.MemberTombstonesChanged$static classClusterEvent.MemberUpMember status changed to Up.static classClusterEvent.MemberUp$static classClusterEvent.MemberWeaklyUpMember status changed to WeaklyUp.static classClusterEvent.MemberWeaklyUp$static classClusterEvent.ReachabilityChanged$static interfaceClusterEvent.ReachabilityEventMarker interface to facilitate subscription of bothClusterEvent.UnreachableMemberandClusterEvent.ReachableMember.static classClusterEvent.ReachableDataCenterDeprecated.Use Akka Distributed Cluster instead.static classClusterEvent.ReachableDataCenter$static classClusterEvent.ReachableMemberA member is considered as reachable by the failure detector after having been unreachable.static classClusterEvent.ReachableMember$static classClusterEvent.RoleLeaderChangedFirst member (leader) of the members within a role set (in the same data center as this node, if data centers are used) changed.static classClusterEvent.RoleLeaderChanged$static classClusterEvent.SeenChanged$static classClusterEvent.SubscriptionInitialStateModestatic classClusterEvent.UnreachableDataCenterDeprecated.Use Akka Distributed Cluster instead.static classClusterEvent.UnreachableDataCenter$static classClusterEvent.UnreachableMemberA member is considered as unreachable by the failure detector.static classClusterEvent.UnreachableMember$
-
Constructor Summary
Constructors Constructor Description ClusterEvent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusterEvent.ClusterShuttingDown$getClusterShuttingDownInstance()Java API: get the singleton instance ofClusterShuttingDowneventstatic ClusterEvent.InitialStateAsEvents$initialStateAsEvents()Java APIstatic ClusterEvent.InitialStateAsSnapshot$initialStateAsSnapshot()Java API
-
-
-
Method Detail
-
initialStateAsSnapshot
public static ClusterEvent.InitialStateAsSnapshot$ initialStateAsSnapshot()
Java API
-
initialStateAsEvents
public static ClusterEvent.InitialStateAsEvents$ initialStateAsEvents()
Java API
-
getClusterShuttingDownInstance
public static ClusterEvent.ClusterShuttingDown$ getClusterShuttingDownInstance()
Java API: get the singleton instance ofClusterShuttingDownevent
-
-