public class MemberDepartedEvent extends MembershipEvent<MemberDepartedEvent>
DistributedMember
,
DistributedSystem
,
MembershipEvent
,
Serialized FormMembershipEvent.Type
Constructor and Description |
---|
MemberDepartedEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager)
Constructs a new instance of
MemberDepartedEvent initialized with the given DistributionManager . |
Modifier and Type | Method and Description |
---|---|
MemberDepartedEvent |
crashed(boolean crashed)
Builder method used to configure the
isCrashed() property indicating whether the peer member crashed
when it departed from the DistributedSystem . |
MembershipEvent.Type |
getType()
Returns the
MembershipEvent.Type of this MembershipEvent , such as MembershipEvent.Type.MEMBER_JOINED . |
boolean |
isCrashed()
Determines whether the peer member crashed when it departed from the
DistributedSystem (cluster). |
assertNotNull, getCache, getDistributedMember, getDistributedSystem, getDistributionManager, withMember
public MemberDepartedEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager)
MemberDepartedEvent
initialized with the given DistributionManager
.distributionManager
- DistributionManager
used as the source
of this event;
must not be null.java.lang.IllegalArgumentException
- if DistributionManager
is null.DistributionManager
public boolean isCrashed()
DistributedSystem
(cluster).DistributedSystem
(cluster).public MemberDepartedEvent crashed(boolean crashed)
isCrashed()
property indicating whether the peer member crashed
when it departed from the DistributedSystem
.crashed
- boolean value indicating whether the peer member crashed.MemberDepartedEvent
.isCrashed()
public final MembershipEvent.Type getType()
MembershipEvent
MembershipEvent.Type
of this MembershipEvent
, such as MembershipEvent.Type.MEMBER_JOINED
.getType
in class MembershipEvent<MemberDepartedEvent>
MembershipEvent.Type
.