Interface Response

    • Method Detail

      • isReceived

        boolean isReceived()
        Returns:
        whether the response is received
      • received

        void received()
        Set received status
      • clearReceived

        void clearReceived()
        Unset received status
      • getGrantedCredits

        int getGrantedCredits()
        Returns:
        number of credits granted by the server
      • getErrorCode

        int getErrorCode()
        Returns:
        status code
      • setMid

        void setMid​(long k)
        Parameters:
        k -
      • getMid

        long getMid()
        Returns:
        mid
      • verifySignature

        boolean verifySignature​(byte[] buffer,
                                int i,
                                int size)
        Parameters:
        buffer -
        i -
        size -
        Returns:
        whether signature verification is successful
      • isVerifyFailed

        boolean isVerifyFailed()
        Returns:
        whether signature verification failed
      • isError

        boolean isError()
        Returns:
        whether the response is an error
      • error

        void error()
        Set error status
      • getExpiration

        Long getExpiration()
        Returns:
        the message timeout
      • setExpiration

        void setExpiration​(Long exp)
        Parameters:
        exp - message timeout
      • reset

        void reset()
      • getException

        Exception getException()
        Returns:
        an exception linked to an error
      • exception

        void exception​(Exception e)
        Parameters:
        e -
      • getNextResponse

        Response getNextResponse()
        Returns:
        chained response