Class WriteDocumentReply
java.lang.Object
com.yahoo.messagebus.Routable
com.yahoo.messagebus.Reply
com.yahoo.documentapi.messagebus.protocol.DocumentReply
com.yahoo.documentapi.messagebus.protocol.DocumentAcceptedReply
com.yahoo.documentapi.messagebus.protocol.WriteDocumentReply
- Direct Known Subclasses:
RemoveDocumentReply
,UpdateDocumentReply
,VisitorReply
This reply class is used by operations that perform writes to VDS/search,
that is: Put, Remove, Update.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns a unique VDS timestamp so that visiting up to and including that timestamp will return a state including this operation but not any operations sent to the same distributor after it.void
setHighestModificationTimestamp
(long timestamp) Sets the modification timestamp.Methods inherited from class com.yahoo.documentapi.messagebus.protocol.DocumentReply
getPriority, getProtocol, getType, setPriority
Methods inherited from class com.yahoo.messagebus.Reply
addError, getError, getErrorCodes, getErrors, getMessage, getNumErrors, getRetryDelay, hasErrors, hasFatalErrors, setMessage, setRetryDelay, swapState
Methods inherited from class com.yahoo.messagebus.Routable
discard, getCallStack, getContext, getTrace, popHandler, pushHandler, setContext
-
Constructor Details
-
WriteDocumentReply
public WriteDocumentReply(int type)
-
-
Method Details
-
getHighestModificationTimestamp
public long getHighestModificationTimestamp()Returns a unique VDS timestamp so that visiting up to and including that timestamp will return a state including this operation but not any operations sent to the same distributor after it. For PUT/UPDATE/REMOVE operations this timestamp will be the timestamp of the operation.- Returns:
- Returns the modification timestamp.
-
setHighestModificationTimestamp
public void setHighestModificationTimestamp(long timestamp) Sets the modification timestamp.
-