Class WriteDocumentReply

java.lang.Object
com.yahoo.messagebus.Routable
com.yahoo.messagebus.Reply
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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    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
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.