de.novanic.eventservice.config
Class RemoteEventServiceConfiguration

java.lang.Object
  extended by de.novanic.eventservice.config.RemoteEventServiceConfiguration
All Implemented Interfaces:
EventServiceConfiguration

public class RemoteEventServiceConfiguration
extends java.lang.Object
implements EventServiceConfiguration

An EventServiceConfiguration holds the configuration for EventService. The time for a timeout and the min- and max-waiting-time can be configured.

- Min waiting time - Listening should hold at least for min waiting time.
- Max waiting time - Listening shouldn't hold longer than max waiting time.
- Timeout time - Max time for a listen cycle. If the timeout time is exceeded, the client will be deregistered.

Author:
sstrohschein
Date: 09.08.2008
Time: 23:17:38

Constructor Summary
RemoteEventServiceConfiguration(java.lang.String aConfigDescription, int aMinWaitingTime, int aMaxWaitingTime, int aTimeoutTime)
          Creates a new RemoteEventServiceConfiguration.
 
Method Summary
 boolean equals(java.lang.Object anObject)
           
 java.lang.String getConfigDescription()
          Returns the description of the configuration (for example the location).
 int getMaxWaitingTime()
          Returns the max waiting time.
 int getMinWaitingTime()
          Returns the min waiting time.
 int getTimeoutTime()
          Returns the timeout time (max time for a listen cycle).
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteEventServiceConfiguration

public RemoteEventServiceConfiguration(java.lang.String aConfigDescription,
                                       int aMinWaitingTime,
                                       int aMaxWaitingTime,
                                       int aTimeoutTime)
Creates a new RemoteEventServiceConfiguration.

Parameters:
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)
Method Detail

getConfigDescription

public java.lang.String getConfigDescription()
Returns the description of the configuration (for example the location).

Specified by:
getConfigDescription in interface EventServiceConfiguration
Returns:
configuration description

getMinWaitingTime

public int getMinWaitingTime()
Returns the min waiting time. Listening should hold at least for min waiting time.

Specified by:
getMinWaitingTime in interface EventServiceConfiguration
Returns:
min waiting time

getMaxWaitingTime

public int getMaxWaitingTime()
Returns the max waiting time. Listening shouldn't hold longer than max waiting time.

Specified by:
getMaxWaitingTime in interface EventServiceConfiguration
Returns:
max waiting time

getTimeoutTime

public int getTimeoutTime()
Returns the timeout time (max time for a listen cycle).

Specified by:
getTimeoutTime in interface EventServiceConfiguration
Returns:
timeout time

equals

public boolean equals(java.lang.Object anObject)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object