Class RemoveResponse


  • public class RemoveResponse
    extends Response
    This response is provided for successful document remove operations. Use the wasFound() method to check whether or not the document was actually found.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • RemoveResponse

        public RemoveResponse​(long requestId,
                              boolean wasFound)
      • RemoveResponse

        public RemoveResponse​(long requestId,
                              boolean wasFound,
                              com.yahoo.messagebus.Trace trace)
    • Method Detail

      • wasFound

        public boolean wasFound()
      • isSuccess

        public boolean isSuccess()
        Description copied from class: Response
        Returns whether this response encodes a success or a failure
        Overrides:
        isSuccess in class Response
        Returns:
        true if success
      • equals

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

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