Class SessCreateDestRequest

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • type

        private byte type
        Destination type, Queue or Topic, temporary or not.
      • name

        private String name
        Name of the destination if any
    • Constructor Detail

      • SessCreateDestRequest

        public SessCreateDestRequest​(byte type)
        Constructs a SessCreateTQRequest instance.
        Parameters:
        type - The destination type.
      • SessCreateDestRequest

        public SessCreateDestRequest​(byte type,
                                     String name)
        Constructs a SessCreateTQRequest instance.
        Parameters:
        type - The destination type.
        name - The destination name.
      • SessCreateDestRequest

        public SessCreateDestRequest()
        Constructs a SessCreateTQRequest instance.
    • Method Detail

      • getType

        public byte getType()
        Returns the destination type, Queue or Topic, temporary or not.
        Returns:
        the destination type, Queue or Topic, temporary or not.
      • getName

        public String getName()
        Returns the destination name if any.
        Returns:
        the destination name if any, null if not set.
      • readFrom

        public void readFrom​(InputStream is)
                      throws IOException
        The object implements the readFrom method to restore its contents from the input stream.
        Specified by:
        readFrom in interface Streamable
        Overrides:
        readFrom in class AbstractJmsRequest
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.