|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.clusterprotocol.ClusterProtocolBuilder<P,CP,PB,B>
P
- cluster protocol node protocol type.CP
- cluster protocol type.PB
- cluster protocol node builder type.B
- cluster protocol builder type.public abstract class ClusterProtocolBuilder<P extends ClientChannel,CP extends ClusterProtocol,PB extends ProtocolBuilder<P,PB>,B extends ClusterProtocolBuilder<P,CP,PB,B>>
Abstract generic builder base for Cluster Protocols construction.
Field Summary | |
---|---|
protected ClusterProtocolLoadBalancer |
loadBalancer
|
protected PB |
protocolBuilder
|
protected ClusterProtocolPolicy |
protocolPolicy
|
Constructor Summary | |
---|---|
ClusterProtocolBuilder()
|
Method Summary | |
---|---|
abstract CP |
build()
Creates and returns new instance of Cluster Protocol. |
B |
withClusterProtocolPolicy(ClusterProtocolPolicy protocolPolicy)
Initializes cluster protocol builder with custom cluster protocol policy. |
B |
withLoadBalancer(ClusterProtocolLoadBalancer loadBalancer)
Initializes cluster protocol builder with custom load balancer. |
B |
withProtocolBuilder(PB protocolBuilder)
Initializes cluster protocol builder with custom protocol nodes builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PB extends ProtocolBuilder<P,PB> protocolBuilder
protected ClusterProtocolLoadBalancer loadBalancer
protected ClusterProtocolPolicy protocolPolicy
Constructor Detail |
---|
public ClusterProtocolBuilder()
Method Detail |
---|
public B withProtocolBuilder(PB protocolBuilder)
protocolBuilder
- the protocol cluster nodes builder.
public B withLoadBalancer(ClusterProtocolLoadBalancer loadBalancer)
loadBalancer
- user defined instance of Cluster Protocol Load Balancer.
public B withClusterProtocolPolicy(ClusterProtocolPolicy protocolPolicy)
protocolPolicy
- user defined cluster protocol policy.
public abstract CP build()
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |