|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule
public static class ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule
A quorum rule defines a set of allowable actions beyond the rule's threshold size.
| Field Summary | |
|---|---|
protected static ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule |
ALL_ALLOWEDA QuorumRule that permits all actions. |
protected static ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule |
NONE_ALLOWEDA QuorumRule that rejects all actions. |
| Constructor Summary | |
|---|---|
ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule(int nRuleMask, int nThreshold)Construct a state with the specified threshold and numeric representation. |
|
| Method Summary | |
|---|---|
protected boolean |
contains(int nMask)Return true if the current rule contains the specified action mask. |
protected int |
getRuleMask()Return the numeric representation of the actions allowed by this rule. |
protected int |
getThreshold()Return the size threshold for this rule. |
protected void |
setRuleMask(int nRuleMask)Set the numeric representation of the actions allowed by this rule. |
protected void |
setThreshold(int nThreshold)Set the size threshold for this rule. |
java.lang.String |
toString() |
protected ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule |
union(ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule rule)Return a quorum rule composed from this and the specified rule that reflects the "union" of the two rules. |
| Field Detail |
|---|
protected static final ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule NONE_ALLOWED
protected static final ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule ALL_ALLOWED
| Constructor Detail |
|---|
public ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule(int nRuleMask,
int nThreshold)
nRuleMask - numeric representation of the statenThreshold - the size threshold of the state| Method Detail |
|---|
public java.lang.String toString()
protected boolean contains(int nMask)
nMask - the action bitmask to test forprotected ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule union(ConfigurableQuorumPolicy.MembershipQuorumPolicy.QuorumRule rule)
rule - the rule to compute the union of this withprotected int getRuleMask()
protected void setRuleMask(int nRuleMask)
nRuleMask - the numeric representation of this ruleprotected int getThreshold()
protected void setThreshold(int nThreshold)
nThreshold - the size threshold for this rule
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||