Interface Member
- All Known Implementing Classes:
ConsistentHash.ConsistentHashMember,SimpleMember
public interface Member
Member of a cluster of connected command endpoints.
- Author:
- Koen Lavooij
-
Method Summary
-
Method Details
-
name
String name()Returns the name of this Member.- Returns:
- the member name
-
getConnectionEndpoint
Get the endpoint of this Member given aprotocol. Returns an empty optional if the protocol is not a supported endpoint of this member.- Type Parameters:
T- the protocol type- Parameters:
protocol- the expected- Returns:
- the endpoint if this member supports the protocol. An empty optional otherwise.
-
local
boolean local()- Returns:
- True if the member is local. False if the member is remote or if this information is unknown.
-
suspect
void suspect()Mark this member as suspect, i.e. suspected of being (temporarily) unavailable.
-