|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.iac.ing.codeso.status.client.StatusItemProxyConnectionPolicy
public class StatusItemProxyConnectionPolicy
Specifies the connection policies available for a StatusItemProxy
.
Communication between proxies and their remote status items is also affected by
the StatusItemPublicationPolicy
.
This class is thread-safe.
Field Summary | |
---|---|
private ConnectionPolicy |
connectionPolicy
Holds a reference to the equivalent publisher connection policy. |
static int |
DEFAULT_LINK_VERIFICATION_INTERVAL
The link verification interval for a status item proxy in milliseconds. |
static int |
DEFAULT_POLLING_INTERVAL
The default polling interval for a status item proxy in milliseconds. |
Constructor Summary | |
---|---|
StatusItemProxyConnectionPolicy()
|
Method Summary | |
---|---|
static StatusItemProxyConnectionPolicy |
getAutoPollingInstance()
Returns a connection policy suitable for a status item proxy which will periodically poll its associated remote status item for value updates. |
static StatusItemProxyConnectionPolicy |
getAutoPollingInstance(int pollingInterval)
Returns a connection policy suitable for a status item proxy which will poll its associated remote status item for value updates. |
(package private) ConnectionPolicy |
getConnectionPolicy()
Returns the publisher proxy connection policy that is equivalent to this one. |
static StatusItemProxyConnectionPolicy |
getDefaultInstance()
Returns the default connection policy which will be adopted for a status item proxy if not explictly specified. |
static StatusItemProxyConnectionPolicy |
getPollOnDemandInstance()
Returns a connection policy suitable for a status item proxy which will poll its associated remote status item every time the user asks it for its current value. |
static StatusItemProxyConnectionPolicy |
getSubscribingInstance()
Returns a connection policy suitable for a status item proxy which will subscribe to its associated remote status item for notification of value updates. |
static StatusItemProxyConnectionPolicy |
getSubscribingInstance(int linkVerificationInterval)
Returns a connection policy suitable for a status item proxy which will subscribe to its associated remote status item for notification of value updates. |
private void |
setConnectionPolicy(ConnectionPolicy connectionPolicy)
Sets the publisher connection policy that is equivalent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_POLLING_INTERVAL
public static final int DEFAULT_LINK_VERIFICATION_INTERVAL
private ConnectionPolicy connectionPolicy
Constructor Detail |
---|
public StatusItemProxyConnectionPolicy()
Method Detail |
---|
public static StatusItemProxyConnectionPolicy getDefaultInstance()
Currently the default behaviour is to subscribe for notification
of value updates so a call to this method is equivalent to a call to
getSubscribingInstance
.
public static StatusItemProxyConnectionPolicy getAutoPollingInstance()
The polling interval will be fixed to the default value set up in this class (currently 15000 milliseconds).
public static StatusItemProxyConnectionPolicy getAutoPollingInstance(int pollingInterval)
The polling interval will be determined by the pollingInterval
parameter passed to this method.
pollingInterval
- positive integer specifying the delay in
milliseconds between each successive poll operation.
java.lang.IllegalArgumentException
- if the specified pollingInterval
parameter was zero or negative.public static StatusItemProxyConnectionPolicy getPollOnDemandInstance()
public static StatusItemProxyConnectionPolicy getSubscribingInstance()
The link verification interval will be fixed to the default value set up in this class (currently 15000 milliseconds).
public static StatusItemProxyConnectionPolicy getSubscribingInstance(int linkVerificationInterval)
The link verification interval will be determined by the
linkVerificationInterval
parameter passed to this method.
linkVerificationInterval
- positive integer specifying the delay in
milliseconds between each successive verification of the link.
java.lang.IllegalArgumentException
- if the specified
linkVerificationInterval
parameter was zero or
negative.private void setConnectionPolicy(ConnectionPolicy connectionPolicy)
connectionPolicy
- reference to the equivalent publisher
proxy connection policy.ConnectionPolicy getConnectionPolicy()
ConnectionPolicy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |