public static class ConsistentHash.ConsistentHashMember extends Object implements Member
ConsistentHash
registry.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CommandMessageFilter |
getCommandFilter()
Returns this member's filter describing the commands it supports
|
<T> Optional<T> |
getConnectionEndpoint(Class<T> protocol)
Get the endpoint of this Member given a
protocol . |
int |
hashCode() |
Set<String> |
hashes()
Returns the hashes covered by the member.
|
boolean |
local() |
String |
name()
Returns the name of this Member.
|
int |
segmentCount()
Returns this member's segment count which relates to the relative load factor of the member.
|
void |
suspect()
Mark this member as suspect, i.e.
|
String |
toString() |
public String name()
Member
public boolean local()
public void suspect()
Member
public int segmentCount()
public CommandMessageFilter getCommandFilter()
public Set<String> hashes()
public <T> Optional<T> getConnectionEndpoint(Class<T> protocol)
Member
protocol
. Returns an empty optional if the protocol is not a
supported endpoint of this member.getConnectionEndpoint
in interface Member
T
- the protocol typeprotocol
- the expectedCopyright © 2010–2022. All rights reserved.