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 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
ConstructorDescriptionMemberSuspectEvent
(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberSuspectEvent
initialized with the givenDistributionManager
. -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.geode.distributed.DistributedMember>
final MembershipEvent.Type
getType()
Returns theMembershipEvent.Type
of thisMembershipEvent
, such asMembershipEvent.Type.MEMBER_JOINED
.withReason
(String reason) Builder method used to configure thereason
describing the suspicion of thesuspect member
.withSuspect
(org.apache.geode.distributed.DistributedMember suspectMember) Builder method used to configure thepeer member
that is the subject of the suspicionMembershipEvent
.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
-
MemberSuspectEvent
public MemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofMemberSuspectEvent
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
-
getReason
-
getSuspectMember
- Returns:
- an
Optional
DistributedMember
identified as the suspect in theMembershipEvent
. - See Also:
-
DistributedMember
Optional
-
withReason
Builder method used to configure thereason
describing the suspicion of thesuspect member
.- Parameters:
reason
-String
describing the suspicion of thepeer member
; may be null.- Returns:
- this
MemberSuspectEvent
. - See Also:
-
withSuspect
Builder method used to configure thepeer member
that is the subject of the suspicionMembershipEvent
.- Parameters:
suspectMember
-peer member
that is being suspected; may be null.- Returns:
- this
MemberSuspectEvent
. - See Also:
-
getType
Returns theMembershipEvent.Type
of thisMembershipEvent
, such asMembershipEvent.Type.MEMBER_JOINED
.- Overrides:
getType
in classMembershipEvent<MemberSuspectEvent>
- Returns:
- the
MembershipEvent.Type
.
-