Class EchoResponse

  • All Implemented Interfaces:
    RpcResponse

    public class EchoResponse
    extends java.lang.Object
    implements RpcResponse
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getBody()  
      java.lang.String getErrorMessage()
      Returns an error message if an error occurred, or null otherwise.
      java.lang.Long getId()  
      java.lang.String getMessage()  
      int hashCode()  
      void setBody​(java.lang.String body)  
      void setId​(java.lang.Long id)  
      void setMessage​(java.lang.String message)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EchoResponse

        public EchoResponse()
      • EchoResponse

        public EchoResponse​(java.lang.String message)
      • EchoResponse

        public EchoResponse​(java.lang.Throwable t)
    • Method Detail

      • getId

        public java.lang.Long getId()
      • setId

        public void setId​(java.lang.Long id)
      • setMessage

        public void setMessage​(java.lang.String message)
      • getMessage

        public java.lang.String getMessage()
      • getBody

        public java.lang.String getBody()
      • setBody

        public void setBody​(java.lang.String body)
      • getErrorMessage

        public java.lang.String getErrorMessage()
        Description copied from interface: RpcResponse
        Returns an error message if an error occurred, or null otherwise.
        Specified by:
        getErrorMessage in interface RpcResponse
        Returns:
        an error message if an error occurred, or null otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object