ClusterEvent

org.apache.pekko.cluster.ClusterEvent
object ClusterEvent

Domain events published to the event bus. Subscribe with:

 Cluster(system).subscribe(actorRef, classOf[ClusterDomainEvent])

Attributes

Source
ClusterEvent.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Marker interface for cluster domain events.

Marker interface for cluster domain events.

Not intended for user extension.

Attributes

Source
ClusterEvent.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

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

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

Attributes

Source
ClusterEvent.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
final class CurrentClusterState(val members: SortedSet[Member], val unreachable: Set[Member], val seenBy: Set[Address], val leader: Option[Address], val roleLeaderMap: Map[String, Option[Address]], val unreachableDataCenters: Set[DataCenter], @InternalApi val memberTombstones: Set[UniqueAddress]) extends Product5[SortedSet[Member], Set[Member], Set[Address], Option[Address], Map[String, Option[Address]]], Serializable

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

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

Value parameters

leader

leader of the data center of this node

memberTombstones

INTERNAL API

Attributes

Companion
object
Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Marker interface to facilitate subscription of both UnreachableDataCenter and ReachableDataCenter.

Marker interface to facilitate subscription of both UnreachableDataCenter and ReachableDataCenter.

Attributes

Source
ClusterEvent.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

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.

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.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

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

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

Attributes

Source
ClusterEvent.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
final case class LeaderChanged(leader: Option[Address]) extends ClusterDomainEvent

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

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

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class MemberDowned(member: Member) extends MemberEvent

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

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

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
sealed trait MemberEvent extends ClusterDomainEvent

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.

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.

Attributes

Source
ClusterEvent.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class MemberExited(member: Member) extends MemberEvent

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

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

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberJoined(member: Member) extends MemberEvent

Member status changed to Joining.

Member status changed to Joining.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberLeft(member: Member) extends MemberEvent

Member status changed to Leaving.

Member status changed to Leaving.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberPreparingForShutdown(member: Member) extends MemberEvent

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberReadyForShutdown(member: Member) extends MemberEvent

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberRemoved(member: Member, previousStatus: MemberStatus) extends MemberEvent

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.

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.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberUp(member: Member) extends MemberEvent

Member status changed to Up.

Member status changed to Up.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
final case class MemberWeaklyUp(member: Member) extends MemberEvent

Member status changed to WeaklyUp. A joining member can be moved to WeaklyUp if convergence cannot be reached, i.e. there are unreachable nodes. It will be moved to Up when convergence is reached.

Member status changed to WeaklyUp. A joining member can be moved to WeaklyUp if convergence cannot be reached, i.e. there are unreachable nodes. It will be moved to Up when convergence is reached.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait MemberEvent
class Object
trait Matchable
class Any
Show all
sealed trait ReachabilityEvent extends ClusterDomainEvent

Marker interface to facilitate subscription of both UnreachableMember and ReachableMember.

Marker interface to facilitate subscription of both UnreachableMember and ReachableMember.

Attributes

Source
ClusterEvent.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class ReachableDataCenter(dataCenter: DataCenter) extends DataCenterReachabilityEvent

A data center is considered reachable when all members from the data center are reachable

A data center is considered reachable when all members from the data center are reachable

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class ReachableMember(member: Member) extends ReachabilityEvent

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.

Attributes

See also
Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class RoleLeaderChanged(role: String, leader: Option[Address]) extends ClusterDomainEvent

First member (leader) of the members within a role set (in the same data center as this node, if data centers are used) changed. Published when the state change is first seen on a node.

First member (leader) of the members within a role set (in the same data center as this node, if data centers are used) changed. Published when the state change is first seen on a node.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed abstract class SubscriptionInitialStateMode

Attributes

Source
ClusterEvent.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class UnreachableDataCenter(dataCenter: DataCenter) extends DataCenterReachabilityEvent

A data center is considered as unreachable when any members from the data center are unreachable

A data center is considered as unreachable when any members from the data center are unreachable

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class UnreachableMember(member: Member) extends ReachabilityEvent

A member is considered as unreachable by the failure detector.

A member is considered as unreachable by the failure detector.

Attributes

Source
ClusterEvent.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

Java API: get the singleton instance of ClusterShuttingDown event

Java API: get the singleton instance of ClusterShuttingDown event

Attributes

Source
ClusterEvent.scala

Java API

Java API

Attributes

Source
ClusterEvent.scala

Java API

Java API

Attributes

Source
ClusterEvent.scala