Class GetDocumentReply

java.lang.Object
com.yahoo.messagebus.Routable
com.yahoo.messagebus.Reply

public class GetDocumentReply extends DocumentAcceptedReply
Author:
Simon Thoresen Hult
  • Constructor Summary

    Constructors
    Constructor
    Description
    GetDocumentReply(com.yahoo.document.Document doc)
    Constructs a new document get reply.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.yahoo.document.Document
    Returns the document retrieved.
    long
    Returns the date the document was last modified.
    Returns the internal buffer to deserialize from, may be null.
    void
    setDocument(com.yahoo.document.Document doc)
    Sets the document of this reply.

    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

    • GetDocumentReply

      public GetDocumentReply(com.yahoo.document.Document doc)
      Constructs a new document get reply.
      Parameters:
      doc - The document requested.
  • Method Details

    • getDocument

      public com.yahoo.document.Document getDocument()
      Returns the document retrieved.
      Returns:
      The document.
    • setDocument

      public void setDocument(com.yahoo.document.Document doc)
      Sets the document of this reply.
      Parameters:
      doc - The document to set.
    • getLastModified

      public long getLastModified()
      Returns the date the document was last modified.
      Returns:
      The date.
    • getSerializedBuffer

      public ByteBuffer getSerializedBuffer()
      Returns the internal buffer to deserialize from, may be null.
      Returns:
      The buffer.