Package io.atomix.cluster
Class ClusterMembershipEvent
java.lang.Object
io.atomix.utils.event.AbstractEvent<ClusterMembershipEvent.Type,Member>
io.atomix.cluster.ClusterMembershipEvent
- All Implemented Interfaces:
io.atomix.utils.event.Event<ClusterMembershipEvent.Type,Member>
public class ClusterMembershipEvent extends io.atomix.utils.event.AbstractEvent<ClusterMembershipEvent.Type,Member>
Describes cluster-related event.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterMembershipEvent.TypeType of cluster-related events. -
Constructor Summary
Constructors Constructor Description ClusterMembershipEvent(ClusterMembershipEvent.Type type, Member instance)Creates an event of a given type and for the specified instance and the current time.ClusterMembershipEvent(ClusterMembershipEvent.Type type, Member instance, long time)Creates an event of a given type and for the specified device and time. -
Method Summary
-
Constructor Details
-
ClusterMembershipEvent
Creates an event of a given type and for the specified instance and the current time.- Parameters:
type- cluster event typeinstance- cluster device subject
-
ClusterMembershipEvent
Creates an event of a given type and for the specified device and time.- Parameters:
type- device event typeinstance- event device subjecttime- occurrence time
-
-
Method Details