com.espertech.esper.client.soda
Enum StreamSelector

java.lang.Object
  extended by java.lang.Enum<StreamSelector>
      extended by com.espertech.esper.client.soda.StreamSelector
All Implemented Interfaces:
Serializable, Comparable<StreamSelector>

public enum StreamSelector
extends Enum<StreamSelector>

Enumeration for representing selection of the remove stream or the insert stream, or both.


Enum Constant Summary
ISTREAM_ONLY
          Indicates selection of the insert stream only.
RSTREAM_ISTREAM_BOTH
          Indicates selection of both the insert and the remove stream.
RSTREAM_ONLY
          Indicates selection of the remove stream only.
 
Method Summary
static StreamSelector valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StreamSelector[] 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

RSTREAM_ONLY

public static final StreamSelector RSTREAM_ONLY
Indicates selection of the remove stream only.


ISTREAM_ONLY

public static final StreamSelector ISTREAM_ONLY
Indicates selection of the insert stream only.


RSTREAM_ISTREAM_BOTH

public static final StreamSelector RSTREAM_ISTREAM_BOTH
Indicates selection of both the insert and the remove stream.

Method Detail

values

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

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

valueOf

public static StreamSelector 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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com