public class RemoteEventServiceConfiguration extends Object implements EventServiceConfiguration
EventService
.
The time for a timeout and the min- and max-waiting-time can be configured.
Constructor and Description |
---|
RemoteEventServiceConfiguration(String aConfigDescription,
Integer aMinWaitingTime,
Integer aMaxWaitingTime,
Integer aTimeoutTime,
Integer aReconnectAttemptCount,
String aConnectionIdGeneratorClassName,
String aConnectionStrategyClientClassName,
String aConnectionStrategyServerClassName,
String aConnectionStrategyEncoding,
Integer aMaxEvents)
Creates a new RemoteEventServiceConfiguration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object anObject) |
String |
getConfigDescription()
Returns the description of the configuration (for example the location).
|
Map<ConfigParameter,Object> |
getConfigMap()
Returns the configurations as a
Map with ConfigParameter
instances as the key. |
String |
getConnectionIdGeneratorClassName()
Returns the class name of the configured
ConnectionIdGenerator . |
String |
getConnectionStrategyClientConnectorClassName()
Returns the class name of the configured connection strategy (client side part).
|
String |
getConnectionStrategyEncoding()
Returns the configured encoding / charset for the connection strategy.
|
String |
getConnectionStrategyServerConnectorClassName()
Returns the class name of the configured connection strategy (server side part).
|
Integer |
getMaxEvents()
Returns the configured maximum amount of events which should be transferred to the client at once.
|
Integer |
getMaxWaitingTime()
Returns the max waiting time.
|
Integer |
getMinWaitingTime()
Returns the min waiting time.
|
Integer |
getReconnectAttemptCount()
Returns the number of reconnect attempts to execute.
|
Integer |
getTimeoutTime()
Returns the timeout time (max time for a listen cycle).
|
int |
hashCode() |
String |
toString() |
public RemoteEventServiceConfiguration(String aConfigDescription, Integer aMinWaitingTime, Integer aMaxWaitingTime, Integer aTimeoutTime, Integer aReconnectAttemptCount, String aConnectionIdGeneratorClassName, String aConnectionStrategyClientClassName, String aConnectionStrategyServerClassName, String aConnectionStrategyEncoding, Integer aMaxEvents)
aConfigDescription
- description of the configuration (for example the location)aMinWaitingTime
- min waiting time before listen returns (in milliseconds)aMaxWaitingTime
- max waiting time before listen returns, when no events recognized (in milliseconds)aTimeoutTime
- timeout time for a listen cycle (in milliseconds)aReconnectAttemptCount
- number of reconnect attemptsaConnectionIdGeneratorClassName
- class name of the configured ConnectionIdGenerator
to generate unique client idsaConnectionStrategyClientClassName
- class name of the configured connection strategy (client side part)aConnectionStrategyServerClassName
- class name of the configured connection strategy (server side part)aConnectionStrategyEncoding
- encoding / charset which is used by the connection strategiespublic String getConfigDescription()
getConfigDescription
in interface EventServiceConfiguration
public Integer getMinWaitingTime()
getMinWaitingTime
in interface EventServiceConfiguration
ConfigParameter.MIN_WAITING_TIME_TAG
public Integer getMaxWaitingTime()
getMaxWaitingTime
in interface EventServiceConfiguration
ConfigParameter.MAX_WAITING_TIME_TAG
public Integer getTimeoutTime()
getTimeoutTime
in interface EventServiceConfiguration
ConfigParameter.TIMEOUT_TIME_TAG
public Integer getReconnectAttemptCount()
getReconnectAttemptCount
in interface EventServiceConfiguration
ConfigParameter.RECONNECT_ATTEMPT_COUNT_TAG
public String getConnectionIdGeneratorClassName()
ConnectionIdGenerator
.
The ConnectionIdGenerator
generates unique ids to identify the clients.getConnectionIdGeneratorClassName
in interface EventServiceConfiguration
ConnectionIdGenerator
ConfigParameter.CONNECTION_ID_GENERATOR
public String getConnectionStrategyClientConnectorClassName()
getConnectionStrategyClientConnectorClassName
in interface EventServiceConfiguration
ConfigParameter.CONNECTION_STRATEGY_CLIENT_CONNECTOR
public String getConnectionStrategyServerConnectorClassName()
getConnectionStrategyServerConnectorClassName
in interface EventServiceConfiguration
ConfigParameter.CONNECTION_STRATEGY_SERVER_CONNECTOR
public String getConnectionStrategyEncoding()
getConnectionStrategyEncoding
in interface EventServiceConfiguration
ConfigParameter.CONNECTION_STRATEGY_ENCODING
public Integer getMaxEvents()
getMaxEvents
in interface EventServiceConfiguration
public Map<ConfigParameter,Object> getConfigMap()
Map
with ConfigParameter
instances as the key.getConfigMap
in interface EventServiceConfiguration
Map
with the configurations with ConfigParameter
instances as the keyCopyright © 2012. All Rights Reserved.