Class QuorumLostEvent
java.lang.Object
java.util.EventObject
org.springframework.geode.distributed.event.MembershipEvent<QuorumLostEvent>
org.springframework.geode.distributed.event.support.QuorumLostEvent
- All Implemented Interfaces:
Serializable
QuorumLostEvent
is fired for the losing side of the DistributedSystem
when
a network partition occurs.- 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
ConstructorDescriptionQuorumLostEvent
(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofQuorumLostEvent
initialized with the givenDistributionManager
. -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends org.apache.geode.distributed.DistributedMember>
Gets the configuredIterable
of failedpeer members
in theDistributedSystem
that are on the losing side of a network partition.Iterable<? extends org.apache.geode.distributed.DistributedMember>
Gets the configuredIterable
of remainingpeer members
in theDistributedSystem
that are on the winning side of a network partition.final MembershipEvent.Type
getType()
Returns theMembershipEvent.Type
of thisMembershipEvent
, such asMembershipEvent.Type.MEMBER_JOINED
.withFailedMembers
(Iterable<? extends org.apache.geode.distributed.DistributedMember> failedMembers) Null-safe builder method used to configure anIterable
of failingpeer members
in theDistributedSystem
on the losing side of a network partition.withFailedMembers
(org.apache.geode.distributed.DistributedMember... failedMembers) Null-safe builder method used to configure an array of failingpeer members
in theDistributedSystem
on the losing side of a network partition.withRemainingMembers
(Iterable<? extends org.apache.geode.distributed.DistributedMember> remainingMembers) Null-safe builder method used to configure anIterable
of remainingpeer members
in theDistributedSystem
on the winning side of a network partition.withRemainingMembers
(org.apache.geode.distributed.DistributedMember... remainingMembers) Null-safe builder method used to configure an array of remainingpeer members
in theDistributedSystem
on the winning side of a network partition.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
-
QuorumLostEvent
public QuorumLostEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofQuorumLostEvent
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
-
getFailedMembers
Gets the configuredIterable
of failedpeer members
in theDistributedSystem
that are on the losing side of a network partition.- Returns:
- an
Iterable
of failedpeer members
; never null. - See Also:
-
DistributedMember
getRemainingMembers()
Iterable
-
getRemainingMembers
Gets the configuredIterable
of remainingpeer members
in theDistributedSystem
that are on the winning side of a network partition.- Returns:
- an
Iterable
of remainingpeer members
; never null. - See Also:
-
DistributedMember
getFailedMembers()
Iterable
-
withFailedMembers
public QuorumLostEvent withFailedMembers(org.apache.geode.distributed.DistributedMember... failedMembers) Null-safe builder method used to configure an array of failingpeer members
in theDistributedSystem
on the losing side of a network partition.- Parameters:
failedMembers
- array of failedpeer members
; may be null.- Returns:
- this
QuorumLostEvent
. - See Also:
-
DistributedMember
withFailedMembers(Iterable)
getFailedMembers()
-
withFailedMembers
public QuorumLostEvent withFailedMembers(Iterable<? extends org.apache.geode.distributed.DistributedMember> failedMembers) Null-safe builder method used to configure anIterable
of failingpeer members
in theDistributedSystem
on the losing side of a network partition.- Parameters:
failedMembers
-Iterable
of failedpeer members
; may be null.- Returns:
- this
QuorumLostEvent
. - See Also:
-
DistributedMember
getFailedMembers()
Iterable
-
withRemainingMembers
public QuorumLostEvent withRemainingMembers(org.apache.geode.distributed.DistributedMember... remainingMembers) Null-safe builder method used to configure an array of remainingpeer members
in theDistributedSystem
on the winning side of a network partition.- Parameters:
remainingMembers
- array of remainingpeer members
; may be null.- Returns:
- this
QuorumLostEvent
. - See Also:
-
DistributedMember
withRemainingMembers(Iterable)
getRemainingMembers()
-
withRemainingMembers
public QuorumLostEvent withRemainingMembers(Iterable<? extends org.apache.geode.distributed.DistributedMember> remainingMembers) Null-safe builder method used to configure anIterable
of remainingpeer members
in theDistributedSystem
on the winning side of a network partition.- Parameters:
remainingMembers
-Iterable
of remainingpeer members
; may be null.- Returns:
- this
QuorumLostEvent
. - See Also:
-
DistributedMember
getRemainingMembers()
Iterable
-
getType
Returns theMembershipEvent.Type
of thisMembershipEvent
, such asMembershipEvent.Type.MEMBER_JOINED
.- Overrides:
getType
in classMembershipEvent<QuorumLostEvent>
- Returns:
- the
MembershipEvent.Type
.
-