|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClusterProtocolLoadBalancer
Common interface for Cluster Protocol Load Balancer component. It allows user applications to implement custom load balancing strategies.
ClusterProtocolBuilder.withLoadBalancer(ClusterProtocolLoadBalancer)
Method Summary | |
---|---|
void |
addNode(Protocol node)
This method is to add just connected Cluster Protocol Node to load balancing strategy. |
Protocol |
chooseNode(Message message)
This method is to apply load balancing strategy on available cluster nodes. |
void |
clear()
This method is called when Cluster Protocol is being closed. |
void |
configure(ConnectionConfiguration config)
This method is to choose and apply load balancer specific options from the cluster connection configuration. |
void |
removeNode(Protocol node)
This method is to remove Cluster Protocol Node from load balancing strategy. Its called when node is removed from the cluster, or its protocol connection is lost. |
Method Detail |
---|
void configure(ConnectionConfiguration config)
config
- connection configuration from the Cluster Protocol base Endpoint.ClusterProtocol.setEndpoint(Endpoint)
void addNode(Protocol node)
node
- cluster protocol node.void removeNode(Protocol node)
node
- cluster protocol node.void clear()
Protocol chooseNode(Message message)
message
- user specified protocol message for sending (may be null
).
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |