public final class DestinationConstants extends Object
Modifier and Type | Field and Description |
---|---|
private static byte |
DESTINATION_TYPE
the destination is a Queue or a Topic
|
static byte |
QUEUE_TYPE
the destination is a Queue
|
static byte |
TEMPORARY
the destination is temporary
|
static byte |
TOPIC_TYPE
the destination is a Topic
|
Constructor and Description |
---|
DestinationConstants() |
Modifier and Type | Method and Description |
---|---|
static void |
checkId(String id)
Check the specified destination identifier.
|
static boolean |
compatible(byte type1,
byte type2) |
static String |
getAdminTopicId(int serverId) |
static String |
getNullId(int serverId) |
static byte |
getQueueType() |
static byte |
getTemporaryQueueType() |
static byte |
getTemporaryTopicType() |
static byte |
getTopicType() |
static boolean |
isQueue(byte type) |
static boolean |
isTemporary(byte type) |
static boolean |
isTopic(byte type) |
public static final byte TOPIC_TYPE
public static final byte QUEUE_TYPE
public static final byte TEMPORARY
private static final byte DESTINATION_TYPE
public static final boolean compatible(byte type1, byte type2)
public static final boolean isQueue(byte type)
public static final boolean isTopic(byte type)
public static final boolean isTemporary(byte type)
public static final byte getQueueType()
public static final byte getTopicType()
public static final byte getTemporaryQueueType()
public static final byte getTemporaryTopicType()
public static final void checkId(String id) throws Exception
Exception
- if an invalid destination identifier is specified.public static final String getNullId(int serverId)
public static final String getAdminTopicId(int serverId)
Copyright © 2016 ScalAgent D.T.. All Rights Reserved.