Package com.webmethods.jms
Interface WmDestination
- All Superinterfaces:
javax.jms.Destination
public interface WmDestination
extends javax.jms.Destination
Interface defining webMethods extensions to javax.jms.Destination and its subclasses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Shared state ordering disabled.static final int
Shared state ordering by publisher.static final int
Shared state ordering by session.static final String
The wildcard string used for Topics. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get whether dead letter subscriptions are enabled for this topic.Get the event type name used for this destination.boolean
Get whether local only subscriptions are enabled for this topic.getName()
Get the name of this destination.boolean
Get whether priority ordering is enabled for this destination.boolean
Get whether this destination is read-only.boolean
Get the shared state for this destination.int
Get the shared state ordering for this destination.boolean
Get whether the topic is a wildcard.void
setDeadLetterOnly
(boolean deadLetterOnly) Enable dead letter subscriptions for this topic.void
setEventType
(String eventType) Set the event type name used for this destination.void
setLocalOnly
(boolean localOnly) Enable local only subscriptions for this topic.void
Set the name for this destination.void
setPriorityOrdering
(boolean priorityOrdering) Enable of disable priority ordering for this destination.void
Set this destination to read-only.void
setSharedState
(boolean sharedState) Set the shared state for this destination.void
setSharedStateOrdering
(int sharedStateOrdering) Set the shared state ordering for this destination.
-
Field Details
-
WILDCARD
The wildcard string used for Topics.- See Also:
-
SHARED_STATE_ORDERING_NONE
static final int SHARED_STATE_ORDERING_NONEShared state ordering disabled.- See Also:
-
SHARED_STATE_ORDERING_PUBLISHER
static final int SHARED_STATE_ORDERING_PUBLISHERShared state ordering by publisher. This guarantees that messages from a single publisher to a destination cannot be processed out of order.- See Also:
-
SHARED_STATE_ORDERING_SESSION
static final int SHARED_STATE_ORDERING_SESSIONShared state ordering by session. This guarantees that messages from a single publisher to all destinations in a session cannot be processed out of order.- See Also:
-
-
Method Details
-
setName
Set the name for this destination.The destination name must be a valid name. All destinations must have a name.
- Parameters:
name
- the Destination name.- Throws:
javax.jms.InvalidDestinationException
- if the destination name is invalidjavax.jms.JMSException
- if unable to set the name- See Also:
-
getName
Get the name of this destination.- Returns:
- the destination name
- Throws:
javax.jms.JMSException
- See Also:
-
setEventType
Set the event type name used for this destination.- Parameters:
eventType
- the event type name for this destination- Throws:
javax.jms.JMSException
- if unable to set the event type- See Also:
-
getEventType
Get the event type name used for this destination.- Returns:
- the event type name for this destination
- Throws:
javax.jms.JMSException
- See Also:
-
setDeadLetterOnly
void setDeadLetterOnly(boolean deadLetterOnly) throws javax.jms.JMSException Enable dead letter subscriptions for this topic. When enabled consumers of this topic will only receive messages if they are undeliverable.- Parameters:
deadLetterOnly
-true
to enable dead letter subscriptions- Throws:
javax.jms.JMSException
- if unable to set dead letter subscriptions- See Also:
-
getDeadLetterOnly
boolean getDeadLetterOnly() throws javax.jms.JMSExceptionGet whether dead letter subscriptions are enabled for this topic.- Returns:
- whether dead letter subscriptions are enabled
- Throws:
javax.jms.JMSException
- See Also:
-
setLocalOnly
void setLocalOnly(boolean localOnly) throws javax.jms.JMSException Enable local only subscriptions for this topic. When enabled consumers of this topic will only receive messages published by publishers connected to the same Broker as the subscriber.- Parameters:
localOnly
-true
to enable local only subscriptions- Throws:
javax.jms.JMSException
- if unable to set local only subscriptions- See Also:
-
getLocalOnly
boolean getLocalOnly() throws javax.jms.JMSExceptionGet whether local only subscriptions are enabled for this topic.- Returns:
- whether dead letter subscriptions are enabled
- Throws:
javax.jms.JMSException
- See Also:
-
setPriorityOrdering
void setPriorityOrdering(boolean priorityOrdering) throws javax.jms.JMSException Enable of disable priority ordering for this destination. If enabled messages will be received in priority order. If disabled messages will be received in publisher order.The default is for priority ordering to be enabled.
- Parameters:
priorityOrdering
-true
to enable priority ordering- Throws:
javax.jms.JMSException
- if unable to set priority ordering- See Also:
-
getPriorityOrdering
boolean getPriorityOrdering() throws javax.jms.JMSExceptionGet whether priority ordering is enabled for this destination.- Returns:
- whether priority ordering is enabled
- Throws:
javax.jms.JMSException
- See Also:
-
setReadOnly
void setReadOnly() throws javax.jms.JMSExceptionSet this destination to read-only. Once set to read-only none of the destination's attributes can be modified.- Throws:
javax.jms.JMSException
- See Also:
-
getReadOnly
boolean getReadOnly() throws javax.jms.JMSExceptionGet whether this destination is read-only.- Returns:
- whether this destination is read-only
- Throws:
javax.jms.JMSException
-
isWildCard
boolean isWildCard() throws javax.jms.JMSExceptionGet whether the topic is a wildcard.- Returns:
true
if the topic is wildcard;false
otherwise- Throws:
javax.jms.JMSException
-