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
public class WriteDocumentReply extends DocumentAcceptedReply
This reply class is used by operations that perform writes to VDS/search, that is: Put, Remove, Update.
-
-
Constructor Summary
Constructors Constructor Description WriteDocumentReply(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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
-
-
-
-
Method Detail
-
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.
-
-