public enum JmsDestinationType extends Enum<JmsDestinationType>
| Enum Constant and Description |
|---|
QUEUE
Used in point-to-point messaging.
|
TOPIC
Used in publish/subscribe messaging.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MessageConsumer |
createConsumer(JmsSettings settings,
JmsConnection connection) |
MessageProducer |
createProducer(JmsSettings settings,
JmsConnection connection) |
abstract Destination |
open(JmsSettings settings,
Session session)
Opens the type of message channel.
|
static JmsDestinationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JmsDestinationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JmsDestinationType QUEUE
public static final JmsDestinationType TOPIC
public static JmsDestinationType[] values()
for (JmsDestinationType c : JmsDestinationType.values()) System.out.println(c);
public static JmsDestinationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Destination open(JmsSettings settings, Session session) throws Throwable
session - the JMS sessiondestinationName - the name of the topic or queue to openDestination instanceThrowablepublic abstract MessageConsumer createConsumer(JmsSettings settings, JmsConnection connection) throws Throwable
Throwablepublic MessageProducer createProducer(JmsSettings settings, JmsConnection connection) throws Throwable
ThrowableCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.