Package com.yahoo.documentapi
Class UpdateResponse
- java.lang.Object
-
- com.yahoo.documentapi.Response
-
- com.yahoo.documentapi.UpdateResponse
-
public class UpdateResponse extends Response
This response is provided for successful document update operations. Use the wasFound() method to check whether or not the document was actually found.- Author:
- Simon Thoresen Hult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.documentapi.Response
Response.Outcome
-
-
Constructor Summary
Constructors Constructor Description UpdateResponse(long requestId, boolean wasFound)
UpdateResponse(long requestId, boolean wasFound, com.yahoo.messagebus.Trace trace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
boolean
isSuccess()
Returns whether this response encodes a success or a failureString
toString()
boolean
wasFound()
-
Methods inherited from class com.yahoo.documentapi.Response
getRequestId, getTextMessage, getTrace, outcome
-
-
-
-
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
-
-