|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectes.iac.ing.codeso.publisher.client.ConnectionPolicy
public class ConnectionPolicy
Specifies the connection policy to be used for a PublisherProxy.
This class is thread-safe.
| Nested Class Summary | |
|---|---|
static class |
ConnectionPolicy.ConnectionType
Specifies the possible types of connection to the remote publisher. |
| Field Summary | |
|---|---|
ConnectionPolicy.ConnectionType |
connectionType
Specifies the type of connection to be made to the remote publisher. |
static ConnectionPolicy.ConnectionType |
DEFAULT_CONNECTION_TYPE
Specifies the default value for the connectionType. |
static int |
DEFAULT_LINK_VERIFICATION_INTERVAL
Specifies the default value in milliseconds for the linkVerificationInterval. |
static int |
DEFAULT_POLLING_INTERVAL
Specifies the default value in milliseconds for the pollingInterval. |
int |
linkVerificationInterval
For proxies of connection type ConnectionType.SUBSCRIBER this variable
specifies the interval in milliseconds between successive checks of the link to the
remote publisher. |
int |
pollingInterval
For proxies of connection type ConnectionType.PERIODIC_POLLER this variable
specifies the interval in milliseconds between successive polls of the remote publisher. |
| Constructor Summary | |
|---|---|
ConnectionPolicy()
Constructs a new instance whose fields will be initially set to the default values. |
|
ConnectionPolicy(ConnectionPolicy basePolicy)
Constructs a new instance whose fields will be initially set to the values specified in the base policy. |
|
| Method Summary | |
|---|---|
static ConnectionPolicy |
getAutoPollingInstance()
Returns a connection policy suitable for a poller. |
static ConnectionPolicy |
getAutoPollingInstance(int pollingInterval)
Returns a connection policy suitable for a poller. |
ConnectionPolicy.ConnectionType |
getConnectionType()
Returns the connection type |
int |
getLinkVerificationInterval()
Returns a connection policy suitable for a poller. |
int |
getPollingInterval()
Returns a connection policy suitable for a poller. |
static ConnectionPolicy |
getPollOnDemandInstance()
Returns a connection policy suitable for a poller. |
static ConnectionPolicy |
getSubscribingInstance()
Returns a connection policy suitable for subscriber. |
static ConnectionPolicy |
getSubscribingInstance(int linkVerificationInterval)
Returns a connection policy suitable for subscriber. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ConnectionPolicy.ConnectionType DEFAULT_CONNECTION_TYPE
connectionType.
Currently set to: ConnectionType.SUBSCRIBER.
public static final int DEFAULT_LINK_VERIFICATION_INTERVAL
linkVerificationInterval.
Currently set to: 15000.
public static final int DEFAULT_POLLING_INTERVAL
pollingInterval.
Currently set to: 15000.
public ConnectionPolicy.ConnectionType connectionType
public int linkVerificationInterval
ConnectionType.SUBSCRIBER this variable
specifies the interval in milliseconds between successive checks of the link to the
remote publisher.
public int pollingInterval
ConnectionType.PERIODIC_POLLER this variable
specifies the interval in milliseconds between successive polls of the remote publisher.
| Constructor Detail |
|---|
public ConnectionPolicy()
public ConnectionPolicy(ConnectionPolicy basePolicy)
basePolicy - the connection policy on which the new policy is to
be initially based.| Method Detail |
|---|
public static ConnectionPolicy getSubscribingInstance()
public static ConnectionPolicy getSubscribingInstance(int linkVerificationInterval)
linkVerificationInterval - the interval in milliseconds between
each attempt to verify the link to the publisher.
public static ConnectionPolicy getAutoPollingInstance()
public static ConnectionPolicy getAutoPollingInstance(int pollingInterval)
pollingInterval - the interval in milliseconds between each
successive poll operation.
public static ConnectionPolicy getPollOnDemandInstance()
public ConnectionPolicy.ConnectionType getConnectionType()
public int getLinkVerificationInterval()
public int getPollingInterval()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||