Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

oracle.sdp.messaging
Enum MessagePriorityType

java.lang.Object
  extended by java.lang.Enum<MessagePriorityType>
      extended by oracle.sdp.messaging.MessagePriorityType
All Implemented Interfaces:
Serializable, java.lang.Comparable<MessagePriorityType>

public enum MessagePriorityType
extends java.lang.Enum<MessagePriorityType>

MessagePriorityType enumerates all available priority types for sending messages in the SDP Messaging. This property can be set in the MessageInfo associated with a Message.

Sample Usage: Message.getMessageInfo().setPriority(MessagePriorityType.HIGH);

Since:
11.0.0

Enum Constant Summary
HIGH
          The high level of message priority.
HIGHEST
          The highest level of message priority.
LOW
          The low level of message priority.
LOWEST
          The lowest level of message priority.
NORMAL
          The normal level of message priority.
 
Method Summary
 int getLevel()
          Get a numeric value for this priority level.
static MessagePriorityType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessagePriorityType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HIGHEST

public static final MessagePriorityType HIGHEST
The highest level of message priority.


HIGH

public static final MessagePriorityType HIGH
The high level of message priority.


NORMAL

public static final MessagePriorityType NORMAL
The normal level of message priority.


LOW

public static final MessagePriorityType LOW
The low level of message priority.


LOWEST

public static final MessagePriorityType LOWEST
The lowest level of message priority.

Method Detail

values

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

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

valueOf

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

getLevel

public int getLevel()
Get a numeric value for this priority level. Used internally by Messaging to map to JMS API priority levels.

Returns:
a numeric value for this priority level.

Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

Copyright © 2009, 2013 Oracle and/or its affiliates. All rights reserved.