Spring Boot for VMware GemFire
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:
- 
- DistributedMember
- DistributedSystem
- MembershipEvent
- Serialized Form
 
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.geode.distributed.event.MembershipEventMembershipEvent.Type
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionMemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberSuspectEventinitialized with the givenDistributionManager.
- 
Method SummaryModifier 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.MembershipEventassertNotNull, getCache, getDistributedMember, getDistributedSystem, getDistributionManager, withMemberMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
MemberSuspectEventpublic MemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberSuspectEventinitialized with the givenDistributionManager.- Parameters:
- distributionManager-- DistributionManagerused as the- sourceof this event; must not be null.
- Throws:
- IllegalArgumentException- if- DistributionManageris null.
- See Also:
- 
- DistributionManager
 
 
 
- 
- 
Method Details- 
getReason
- 
getSuspectMember- Returns:
- an OptionalDistributedMemberidentified as the suspect in theMembershipEvent.
- See Also:
- 
- DistributedMember
- Optional
 
 
- 
withReasonBuilder method used to configure thereasondescribing the suspicion of thesuspect member.- Parameters:
- reason-- Stringdescribing the suspicion of the- peer member; may be null.
- Returns:
- this MemberSuspectEvent.
- See Also:
 
- 
withSuspectBuilder 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:
 
- 
getTypeReturns theMembershipEvent.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.- Overrides:
- getTypein class- MembershipEvent<MemberSuspectEvent>
- Returns:
- the MembershipEvent.Type.
 
 
- 
