|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.commandhandling.distributed.ConsistentHash.Member
public static class ConsistentHash.Member
Represents a member in a consistently hashed cluster. A member is identified by its name, supports a number of commands and can have any number of segments (a.k.a buckets).
Note that a single member may be presented by multipleMember
instances if the number of segments
differs per supported command type.
Constructor Summary | |
---|---|
ConsistentHash.Member(String nodeName,
int segmentCount,
Set<String> supportedCommandTypes)
Constructs a new member with given nodeName , segmentCount supporting given
supportedCommandTypes . |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
Set<String> |
hashes()
Returns the hash values assigned to this member. |
String |
name()
Returns the name of this member. |
int |
segmentCount()
Returns the number of segments this member has on the consistent hash ring. |
Set<String> |
supportedCommands()
Returns the set of commands supported by this member. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsistentHash.Member(String nodeName, int segmentCount, Set<String> supportedCommandTypes)
nodeName
, segmentCount
supporting given
supportedCommandTypes
.
nodeName
- The name of the nodesegmentCount
- The number of segments the node should have on the hash ringsupportedCommandTypes
- The commands supported by this nodeMethod Detail |
---|
public String name()
Member
instances if the number of segments
differs per supported command type. Therefore, the name should not be considered an absolutely unique value.
public Set<String> supportedCommands()
public int segmentCount()
public Set<String> hashes()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |