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

oracle.sdp.messaging
Enum MessageSessionType

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

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

MessageSessionType enumerates all available session types for sending messages (and receiving replies) in the SDP Messaging. This property can be set in the MessageInfo associated with a Message.

Sample Usage: Message.getMessageInfo().setSession(MessageSessionType.FULL_SESSION);

Since:
11.0.0

Enum Constant Summary
FULL_SESSION
          Indicates full session is required.
INBOUND_SESSION
          Indicates inbound session is required.
NO_SESSION
          Indicates no session is required.
OUTBOUND_SESSION
          Indicates outbound session is required.
 
Method Summary
static MessageSessionType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessageSessionType[] 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

NO_SESSION

public static final MessageSessionType NO_SESSION
Indicates no session is required.


OUTBOUND_SESSION

public static final MessageSessionType OUTBOUND_SESSION
Indicates outbound session is required. Outbound session means that all outbound messages to the same recipient address should go to the same driver instance. When a driver reports a received message, it can request that all replies to the from-device of the message should be delivered by itself (the reporting driver) by specifying this session level. An application can specify this session level as well to request all messages to a same destination device should be sent by a same driver instance if the application is going to send many messages to this device.


INBOUND_SESSION

public static final MessageSessionType INBOUND_SESSION
Indicates inbound session is required. Inbound session means that all inbound messages from the same from-device address should go to the same application instance. When a driver reports a received message, it can request that all messages from a from-device should be delivered to the same application instance by specifying this session level. An application can specify this session level as well to request all messages from a same from-device address should be sent to itself (the application instance).


FULL_SESSION

public static final MessageSessionType FULL_SESSION
Indicates full session is required. Full session means both INBOUND_SESSION and OUTBOUND_SESSION.

Method Detail

values

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

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

valueOf

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

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.