Class DestinationConstants


  • public final class DestinationConstants
    extends Object
    Defines constants needed to distinguish Queue and Topic.
    • Constructor Detail

      • DestinationConstants

        public DestinationConstants()
    • Method Detail

      • compatible

        public static final boolean compatible​(byte type1,
                                               byte type2)
      • isQueue

        public static final boolean isQueue​(byte type)
      • isTopic

        public static final boolean isTopic​(byte type)
      • isTemporary

        public static final boolean isTemporary​(byte type)
      • getQueueType

        public static final byte getQueueType()
      • getTopicType

        public static final byte getTopicType()
      • getTemporaryQueueType

        public static final byte getTemporaryQueueType()
      • getTemporaryTopicType

        public static final byte getTemporaryTopicType()
      • checkId

        public static final void checkId​(String id)
                                  throws Exception
        Check the specified destination identifier.
        Parameters:
        id - The destination identifier.
        Throws:
        Exception - if an invalid destination identifier is specified.
      • getNullId

        public static final String getNullId​(int serverId)
      • getAdminTopicId

        public static final String getAdminTopicId​(int serverId)