public abstract class DestinationUtils extends Object
Destinations
and
marshaling them to Strings (network names).
A temporary destination is only valid for consumption within the session that
created it; it is recommended to use
JCSMPSession.createTemporaryQueue()
and
JCSMPSession.createTemporaryTopic()
to acquire new instances of
temporary destinations, instead of this utility.
Validation is not performed on parameters passed into these utility functions. As a consequence, it is only valid to use names obtained from the JCSMP API.
Modifier and Type | Method and Description |
---|---|
abstract String |
getEncodedName(Destination destination)
Deprecated.
|
abstract String |
getNetworkName(Destination destination)
|
static DestinationUtils |
onlyInstance()
Get a concrete instance of this utility class.
|
abstract Destination |
queueFromEncodedName(String name)
Deprecated.
|
abstract Destination |
queueFromNetworkName(String name)
Creates an (optionally temporary)
Queue from the supplied name. |
abstract Destination |
topicFromEncodedName(String name)
Deprecated.
|
abstract Destination |
topicFromNetworkName(String name)
Creates an (optionally temporary)
Topic from the supplied name. |
public static DestinationUtils onlyInstance()
DestinationUtils
.@Deprecated public abstract Destination queueFromEncodedName(String name)
DestinationUtils.queueFromNetworkName(String)
.public abstract Destination queueFromNetworkName(String name)
Queue
from the supplied name.
The durability of the destination is inferred from the name.
An encoded network name must be obtained from
DestinationUtils.getEncodedName(Destination)
.
name
- A valid Queue
name obtained from the API.Destination
instance.@Deprecated public abstract Destination topicFromEncodedName(String name)
DestinationUtils.topicFromNetworkName(String)
.public abstract Destination topicFromNetworkName(String name)
Topic
from the supplied name.
The durability of the destination is inferred from the name.
An encoded network name must be obtained from
DestinationUtils.getEncodedName(Destination)
.
name
- A valid Topic
name obtained from the API.Destination
instance.@Deprecated public abstract String getEncodedName(Destination destination)
DestinationUtils.getNetworkName(Destination)
.public abstract String getNetworkName(Destination destination)
destination
- A Destination
instance, must be an instance of a
Queue
or Topic
.Copyright 2004-2024 Solace Corporation. All rights reserved.