Class CnxConnectReply

    • Field Detail

      • serialVersionUID

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

        private int cnxKey
        The connection's key.
      • proxyId

        private String proxyId
        The proxy's identifier.
    • Constructor Detail

      • CnxConnectReply

        public CnxConnectReply​(CnxConnectRequest req,
                               int cnxKey,
                               String proxyId)
        Constructs a CnxConnectReply.
        Parameters:
        req - The replied request.
        cnxKey - The connection's key.
        proxyId - The proxy's identifier.
      • CnxConnectReply

        public CnxConnectReply()
        Constructs a CnxConnectReply.
    • Method Detail

      • setCnxKey

        public void setCnxKey​(int cnxKey)
        Sets the connection key.
        Parameters:
        cnxKey - The connection key.
      • getCnxKey

        public int getCnxKey()
        Returns the connection's key.
        Returns:
        The connection key.
      • setProxyId

        public void setProxyId​(String proxyId)
        Sets the proxy's identifier.
        Parameters:
        proxyId - The proxy's identifier.
      • getProxyId

        public String getProxyId()
        Returns the proxy's identifier.
        Returns:
        proxyId The proxy's identifier.
      • 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 AbstractJmsReply
        Parameters:
        is - the stream to read data from in order to restore the object
        Throws:
        IOException - an error occurs during IO operation.