akka.cluster

ClusterEvent

Related Doc: package cluster

object ClusterEvent

Domain events published to the event bus. Subscribe with:

Cluster(system).subscribe(actorRef, classOf[ClusterDomainEvent])
Source
ClusterEvent.scala
Linear Supertypes
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ClusterEvent
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait ClusterDomainEvent extends AnyRef

    Marker interface for cluster domain events.

  2. case class ClusterMetricsChanged(nodeMetrics: Set[NodeMetrics]) extends ClusterDomainEvent with Product with Serializable

    Current snapshot of cluster node metrics.

    Current snapshot of cluster node metrics. Published to subscribers.

  3. case class CurrentClusterState(members: SortedSet[Member] = immutable.SortedSet.empty, unreachable: Set[Member] = Set.empty, seenBy: Set[Address] = Set.empty, leader: Option[Address] = None, roleLeaderMap: Map[String, Option[Address]] = Map.empty) extends Product with Serializable

    Current snapshot state of the cluster.

    Current snapshot state of the cluster. Sent to new subscriber.

  4. case class LeaderChanged(leader: Option[Address]) extends ClusterDomainEvent with Product with Serializable

    Leader of the cluster members changed.

    Leader of the cluster members changed. Published when the state change is first seen on a node.

  5. sealed trait MemberEvent extends ClusterDomainEvent

    Marker interface for membership events.

    Marker interface for membership events. Published when the state change is first seen on a node. The state change was performed by the leader when there was convergence on the leader node, i.e. all members had seen previous state.

  6. case class MemberExited(member: Member) extends MemberEvent with Product with Serializable

    Member status changed to MemberStatus.Exiting and will be removed when all members have seen the Exiting status.

  7. case class MemberRemoved(member: Member, previousStatus: MemberStatus) extends MemberEvent with Product with Serializable

    Member completely removed from the cluster.

    Member completely removed from the cluster. When previousStatus is MemberStatus.Down the node was removed after being detected as unreachable and downed. When previousStatus is MemberStatus.Exiting the node was removed after graceful leaving and exiting.

  8. case class MemberUp(member: Member) extends MemberEvent with Product with Serializable

    Member status changed to Up.

  9. sealed trait ReachabilityEvent extends ClusterDomainEvent

    Marker interface to facilitate subscription of both UnreachableMember and ReachableMember.

  10. case class ReachableMember(member: Member) extends ReachabilityEvent with Product with Serializable

    A member is considered as reachable by the failure detector after having been unreachable.

    A member is considered as reachable by the failure detector after having been unreachable.

    See also

    UnreachableMember

  11. case class RoleLeaderChanged(role: String, leader: Option[Address]) extends ClusterDomainEvent with Product with Serializable

    First member (leader) of the members within a role set changed.

    First member (leader) of the members within a role set changed. Published when the state change is first seen on a node.

  12. sealed abstract class SubscriptionInitialStateMode extends AnyRef

  13. case class UnreachableMember(member: Member) extends ReachabilityEvent with Product with Serializable

    A member is considered as unreachable by the failure detector.

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. object ClusterShuttingDown extends ClusterDomainEvent with Product with Serializable

    This event is published when the cluster node is shutting down, before the final MemberRemoved events are published.

  5. object InitialStateAsEvents extends SubscriptionInitialStateMode with Product with Serializable

    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.

  6. object InitialStateAsSnapshot extends SubscriptionInitialStateMode with Product with Serializable

    When using this subscription mode a snapshot of akka.cluster.ClusterEvent.CurrentClusterState will be sent to the subscriber as the first message.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def getClusterShuttingDownInstance: ClusterShuttingDown.type

    Java API: get the singleton instance of ClusterShuttingDown event

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. def initialStateAsEvents: InitialStateAsEvents.type

    Java API

  16. def initialStateAsSnapshot: InitialStateAsSnapshot.type

    Java API

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped