de.novanic.eventservice.client.event.listener.unlisten
Enum UnlistenEventListener.Scope

java.lang.Object
  extended by java.lang.Enum<UnlistenEventListener.Scope>
      extended by de.novanic.eventservice.client.event.listener.unlisten.UnlistenEventListener.Scope
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UnlistenEventListener.Scope>
Enclosing interface:
UnlistenEventListener

public static enum UnlistenEventListener.Scope
extends java.lang.Enum<UnlistenEventListener.Scope>
implements java.io.Serializable

Scopes for listening to UnlistenEvent instances. See the various scopes (LOCAL, TIMEOUT and UNLISTEN) for the according description.


Enum Constant Summary
LOCAL
          An UnlistenEventListener registered with the local scope does only recognize local unlisten events for example caused by local timeouts or a lost connection to the server side.
TIMEOUT
          An UnlistenEventListener registered with the timeout scope does recognize local unlisten events (for example caused by local timeouts or a lost connection to the server side) and unlisten events of other users / clients caused by a connection timeout of the specified user / client.
UNLISTEN
          An UnlistenEventListener registered with the unlisten scope does recognize all unlisten events: Local unlisten events (for example caused by local timeouts or a lost connection to the server side), unlisten events of other users / clients caused by a timeout and domain unlisten events of other users / clients for example caused by removing a listener for a domain.
 
Method Summary
static UnlistenEventListener.Scope valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UnlistenEventListener.Scope[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOCAL

public static final UnlistenEventListener.Scope LOCAL
An UnlistenEventListener registered with the local scope does only recognize local unlisten events for example caused by local timeouts or a lost connection to the server side. Therefore it isn't necessary to register it to the server side, but unlisten events of other users / clients can't be get with the local scope.


TIMEOUT

public static final UnlistenEventListener.Scope TIMEOUT
An UnlistenEventListener registered with the timeout scope does recognize local unlisten events (for example caused by local timeouts or a lost connection to the server side) and unlisten events of other users / clients caused by a connection timeout of the specified user / client.


UNLISTEN

public static final UnlistenEventListener.Scope UNLISTEN
An UnlistenEventListener registered with the unlisten scope does recognize all unlisten events: Local unlisten events (for example caused by local timeouts or a lost connection to the server side), unlisten events of other users / clients caused by a timeout and domain unlisten events of other users / clients for example caused by removing a listener for a domain.

Method Detail

values

public static final UnlistenEventListener.Scope[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(UnlistenEventListener.Scope c : UnlistenEventListener.Scope.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static UnlistenEventListener.Scope valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name