Package com.yahoo.documentapi
Class DocumentUpdateResponse
- java.lang.Object
-
- com.yahoo.documentapi.Response
-
- com.yahoo.documentapi.DocumentUpdateResponse
-
public class DocumentUpdateResponse extends Response
The asynchronous response to a document update operation. This is a value object.- Author:
- Einar M R Rosenvinge
-
-
Constructor Summary
Constructors Constructor Description DocumentUpdateResponse(long requestId)
Creates a successful responseDocumentUpdateResponse(long requestId, com.yahoo.document.DocumentUpdate documentUpdate)
Creates a successful response containing a document updateDocumentUpdateResponse(long requestId, com.yahoo.document.DocumentUpdate documentUpdate, java.lang.String textMessage, boolean success)
Creates a response containing a textual message and/or a document updateDocumentUpdateResponse(long requestId, java.lang.String textMessage, boolean success)
Creates a response containing a textual message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
com.yahoo.document.DocumentUpdate
getDocumentUpdate()
Returns the document update of this response or null if there is noneint
hashCode()
java.lang.String
toString()
-
Methods inherited from class com.yahoo.documentapi.Response
getRequestId, getTextMessage, isSuccess
-
-
-
-
Constructor Detail
-
DocumentUpdateResponse
public DocumentUpdateResponse(long requestId)
Creates a successful response
-
DocumentUpdateResponse
public DocumentUpdateResponse(long requestId, com.yahoo.document.DocumentUpdate documentUpdate)
Creates a successful response containing a document update- Parameters:
documentUpdate
- the DocumentUpdate to encapsulate in the Response
-
DocumentUpdateResponse
public DocumentUpdateResponse(long requestId, java.lang.String textMessage, boolean success)
Creates a response containing a textual message- Parameters:
textMessage
- the message to encapsulate in the Responsesuccess
- true if the response represents a successful call
-
DocumentUpdateResponse
public DocumentUpdateResponse(long requestId, com.yahoo.document.DocumentUpdate documentUpdate, java.lang.String textMessage, boolean success)
Creates a response containing a textual message and/or a document update- Parameters:
documentUpdate
- the DocumentUpdate to encapsulate in the ResponsetextMessage
- the message to encapsulate in the Responsesuccess
- true if the response represents a successful call
-
-