Spring Boot for VMware GemFire
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:
-
DistributedMemberDistributedSystemMembershipEvent- 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
ConstructorsConstructorDescriptionMemberDepartedEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberDepartedEventinitialized 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.TypegetType()Returns theMembershipEvent.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.booleanDetermines 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, withMemberMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MemberDepartedEvent
public MemberDepartedEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberDepartedEventinitialized with the givenDistributionManager.- Parameters:
distributionManager-DistributionManagerused as thesourceof this event; must not be null.- Throws:
IllegalArgumentException- ifDistributionManageris 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.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.- Overrides:
getTypein classMembershipEvent<MemberDepartedEvent>- Returns:
- the
MembershipEvent.Type.
-