Class MemberDepartedEvent
java.lang.Object
java.util.EventObject
org.springframework.geode.distributed.event.MembershipEvent<MemberDepartedEvent>
org.springframework.geode.distributed.event.support.MemberDepartedEvent
- All Implemented Interfaces:
Serializable
- Since:
- 1.3.0
- See Also:
-
DistributedMember
DistributedSystem
MembershipEvent
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.geode.distributed.event.MembershipEvent
MembershipEvent.Type
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMemberDepartedEvent
(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberDepartedEvent
initialized with the givenDistributionManager
. -
Method Summary
Modifier and TypeMethodDescriptioncrashed
(boolean crashed) Builder method used to configure theisCrashed()
property indicating whether the peer member crashed when it departed from theDistributedSystem
.final MembershipEvent.Type
getType()
Returns theMembershipEvent.Type
of thisMembershipEvent
, such asMembershipEvent.Type.MEMBER_JOINED
.boolean
Determines whether the peer member crashed when it departed from theDistributedSystem
(cluster).Methods inherited from class org.springframework.geode.distributed.event.MembershipEvent
assertNotNull, getCache, getDistributedMember, getDistributedSystem, getDistributionManager, withMember
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MemberDepartedEvent
public MemberDepartedEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberDepartedEvent
initialized with the givenDistributionManager
.- Parameters:
distributionManager
-DistributionManager
used as thesource
of this event; must not be null.- Throws:
IllegalArgumentException
- ifDistributionManager
is null.- See Also:
-
DistributionManager
-
-
Method Details
-
isCrashed
public boolean isCrashed()Determines whether the peer member crashed when it departed from theDistributedSystem
(cluster).- Returns:
- a boolean value indicating whether the peer member crashed when it departed
from the
DistributedSystem
(cluster).
-
crashed
Builder method used to configure theisCrashed()
property indicating whether the peer member crashed when it departed from theDistributedSystem
.- Parameters:
crashed
- boolean value indicating whether the peer member crashed.- Returns:
- this
MemberDepartedEvent
. - See Also:
-
getType
Returns theMembershipEvent.Type
of thisMembershipEvent
, such asMembershipEvent.Type.MEMBER_JOINED
.- Overrides:
getType
in classMembershipEvent<MemberDepartedEvent>
- Returns:
- the
MembershipEvent.Type
.
-