|
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.DefaultClusterProtocolPolicy
public class DefaultClusterProtocolPolicy
Default implementation of Cluster Protocol policy.
ClusterProtocolBuilder.withClusterProtocolPolicy(ClusterProtocolPolicy)
Constructor Summary | |
---|---|
DefaultClusterProtocolPolicy()
|
Method Summary | |
---|---|
boolean |
useRequestProtocolId()
Reserved for future use. |
DefaultClusterProtocolPolicy |
useRequestProtocolId(boolean useRequestProtocolId)
Reserved for future use. |
boolean |
waitOnChannelOpening()
This option indicates that the Cluster Protocol should hold on user thread on messages sending to wait for connection restoration. |
DefaultClusterProtocolPolicy |
waitOnChannelOpening(boolean waitOnChannelOpening)
This option indicates that the Cluster Protocol should hold on user thread on messages sending to wait for connection restoration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultClusterProtocolPolicy()
Method Detail |
---|
public boolean waitOnChannelOpening()
Opening
and this option is true
,
the Cluster Protocol will hold user thread on
send()
/request()
/beginRequest()
/requestAsync()
calls instead of throwing immediate exception.Opening
, and it got no opened connections in the timeout frame,
ChannelClosedOnSendException
will be thrown.false
, the exception will be thrown immediately.
waitOnChannelOpening
in interface ClusterProtocolPolicy
true
- if the hold on feature is enabled,
false
- if it's not.public DefaultClusterProtocolPolicy waitOnChannelOpening(boolean waitOnChannelOpening)
Opening
and this option is true
,
the Cluster Protocol will hold user thread on
send()
/request()
/beginRequest()
/requestAsync()
calls instead of throwing immediate exception.Opening
, and it got no opened connections in the timeout frame,
ChannelClosedOnSendException
will be thrown.false
, the exception will be thrown immediately.
waitOnChannelOpening
- the "hold on" feature enabling option.public boolean useRequestProtocolId()
useRequestProtocolId
in interface ClusterProtocolPolicy
public DefaultClusterProtocolPolicy useRequestProtocolId(boolean useRequestProtocolId)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |