Class CreateDestinationReply

    • Field Detail

      • serialVersionUID

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

        private String id
        Identifier of the created destination.
    • Constructor Detail

      • CreateDestinationReply

        public CreateDestinationReply​(String id,
                                      String name,
                                      String info)
        Constructs a CreateDestinationReply instance.
        Parameters:
        id - The id of the created destination.
        name - the name of the created destination.
        info - Related information.
      • CreateDestinationReply

        public CreateDestinationReply()
    • Method Detail

      • getId

        public final String getId()
        Returns the id of the created queue.
        Returns:
        the id of the created queue.
      • getName

        public final String getName()
      • readFrom

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

        public void writeTo​(OutputStream os)
                     throws IOException
        Description copied from interface: Streamable
        The object implements the writeTo method to write its contents to the output stream.
        Specified by:
        writeTo in interface Streamable
        Overrides:
        writeTo in class AdminReply
        Parameters:
        os - the stream to write the object to
        Throws:
        IOException - an error occurs during IO operation.