GigaSpaces XAP 7.0 API

org.openspaces.events.notify
Enum NotifyComType

java.lang.Object
  extended by java.lang.Enum<NotifyComType>
      extended by org.openspaces.events.notify.NotifyComType
All Implemented Interfaces:
Serializable, Comparable<NotifyComType>

public enum NotifyComType
extends Enum<NotifyComType>

The communication type used to send notifications.

Author:
kimchy

Enum Constant Summary
MULTICAST
          Controls how notification are propagated from the space to the listener.
MULTIPLEX
          Controls how notification are propagated from the space to the listener.
UNICAST
          Controls how notification are propagated from the space to the listener.
 
Method Summary
 int value()
           
static NotifyComType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotifyComType[] 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

UNICAST

public static final NotifyComType UNICAST
Controls how notification are propagated from the space to the listener. Unicast propagation uses TCP unicast communication which is usually best for small amount of registered clients. This is the default communication type.


MULTIPLEX

public static final NotifyComType MULTIPLEX
Controls how notification are propagated from the space to the listener. Same as unicast (UNICAST) in terms of communication protocol but uses a single client side multiplexer which handles all the dispatching to the different notification listeners.


MULTICAST

public static final NotifyComType MULTICAST
Controls how notification are propagated from the space to the listener. Multicast propagation uses UDP multicast communication which is usually best for large amount of registered clients.

Method Detail

values

public static final NotifyComType[] 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(NotifyComType c : NotifyComType.values())
        System.out.println(c);

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

valueOf

public static NotifyComType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

value

public int value()

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.