org.apache.qpid.common
Enum AMQPFilterTypes

java.lang.Object
  extended by java.lang.Enum<AMQPFilterTypes>
      extended by org.apache.qpid.common.AMQPFilterTypes
All Implemented Interfaces:
Serializable, Comparable<AMQPFilterTypes>

public enum AMQPFilterTypes
extends Enum<AMQPFilterTypes>

Specifies the different filter types for consumers that filter their messages.

CRC Card
Responsibilities Collaborations
Represent different consumer filter types.


Enum Constant Summary
AUTO_CLOSE
           
JMS_SELECTOR
           
NO_CONSUME
           
 
Method Summary
 AMQShortString getValue()
          Gets the identifying string of the filter type.
static AMQPFilterTypes valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AMQPFilterTypes[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JMS_SELECTOR

public static final AMQPFilterTypes JMS_SELECTOR

NO_CONSUME

public static final AMQPFilterTypes NO_CONSUME

AUTO_CLOSE

public static final AMQPFilterTypes AUTO_CLOSE
Method Detail

values

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

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

valueOf

public static AMQPFilterTypes 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
NullPointerException - if the argument is null

getValue

public AMQShortString getValue()
Gets the identifying string of the filter type.

Returns:
The identifying string of the filter type.


Licensed to the Apache Software Foundation