ionic.Msmq
Enum Queue.Access

java.lang.Object
  extended by java.lang.Enum<Queue.Access>
      extended by ionic.Msmq.Queue.Access
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Queue.Access>
Enclosing class:
Queue

public static enum Queue.Access
extends java.lang.Enum<Queue.Access>

The Queue.Access enum provides options for access to the MSMQ Queue: Either Receive, Send, or both. Specify this when opening a queue.

Applications may wish to open queues for only the access they need, in order to save resources and memory.


Enum Constant Summary
RECEIVE
          The queue will be accessible for Receive or READ (or GET) operations.
SEND
          The queue will be accessible for Send or WRITE (or PUT) operations.
SEND_AND_RECEIVE
          The queue will be accessible for both Send ad Receive operations.
 
Method Summary
static Queue.Access valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Queue.Access[] 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

RECEIVE

public static final Queue.Access RECEIVE
The queue will be accessible for Receive or READ (or GET) operations.


SEND

public static final Queue.Access SEND
The queue will be accessible for Send or WRITE (or PUT) operations.


SEND_AND_RECEIVE

public static final Queue.Access SEND_AND_RECEIVE
The queue will be accessible for both Send ad Receive operations.

Method Detail

values

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

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

valueOf

public static Queue.Access 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
java.lang.NullPointerException - if the argument is null