Class MemberSuspectEvent
java.lang.Object
java.util.EventObject
org.springframework.geode.distributed.event.MembershipEvent<MemberSuspectEvent>
org.springframework.geode.distributed.event.support.MemberSuspectEvent
- All Implemented Interfaces:
Serializable
MembershipEvent fired when a DistributedMember of the DistributedSystem is suspected
of being unresponsive to other peer members in the cluster.- 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
ConstructorsConstructorDescriptionMemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberSuspectEventinitialized with the givenDistributionManager. -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.geode.distributed.DistributedMember>final MembershipEvent.TypegetType()Returns theMembershipEvent.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.withReason(String reason) Builder method used to configure thereasondescribing the suspicion of thesuspect member.withSuspect(org.apache.geode.distributed.DistributedMember suspectMember) Builder method used to configure thepeer memberthat is the subject of the suspicionMembershipEvent.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
-
MemberSuspectEvent
public MemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberSuspectEventinitialized with the givenDistributionManager.- Parameters:
distributionManager-DistributionManagerused as thesourceof this event; must not be null.- Throws:
IllegalArgumentException- ifDistributionManageris null.- See Also:
-
DistributionManager
-
-
Method Details
-
getReason
-
getSuspectMember
- Returns:
- an
OptionalDistributedMemberidentified as the suspect in theMembershipEvent. - See Also:
-
DistributedMemberOptional
-
withReason
Builder method used to configure thereasondescribing the suspicion of thesuspect member.- Parameters:
reason-Stringdescribing the suspicion of thepeer member; may be null.- Returns:
- this
MemberSuspectEvent. - See Also:
-
withSuspect
Builder method used to configure thepeer memberthat is the subject of the suspicionMembershipEvent.- Parameters:
suspectMember-peer memberthat is being suspected; may be null.- Returns:
- this
MemberSuspectEvent. - See Also:
-
getType
Description copied from class:MembershipEventReturns theMembershipEvent.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.- Overrides:
getTypein classMembershipEvent<MemberSuspectEvent>- Returns:
- the
MembershipEvent.Type.
-