Class DocumentReply
java.lang.Object
com.yahoo.messagebus.Routable
com.yahoo.messagebus.Reply
com.yahoo.documentapi.messagebus.protocol.DocumentReply
- Direct Known Subclasses:
CreateVisitorReply,DocumentAcceptedReply,DocumentIgnoredReply,GetBucketListReply,GetBucketStateReply,StatBucketReply,WrongDistributionReply
public class DocumentReply
extends com.yahoo.messagebus.Reply
This class implements a generic document protocol reply that can be reused by document messages that require no
special reply implementation while still allowing applications to distinguish between types.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the priority tag for this message.com.yahoo.text.Utf8Stringfinal intgetType()voidsetPriority(DocumentProtocol.Priority priority) Sets the priority tag for this message.Methods inherited from class com.yahoo.messagebus.Reply
addError, getError, getErrorCodes, getErrors, getMessage, getNumErrors, getRetryDelay, hasErrors, hasFatalErrors, setMessage, setRetryDelay, swapStateMethods inherited from class com.yahoo.messagebus.Routable
discard, getCallStack, getContext, getTrace, popHandler, pushHandler, setContext
-
Constructor Details
-
DocumentReply
public DocumentReply(int type) Constructs a new reply of given type.- Parameters:
type- The type code to assign to this.
-
-
Method Details
-
getPriority
Returns the priority tag for this message.- Returns:
- The priority.
-
setPriority
Sets the priority tag for this message.- Parameters:
priority- The priority to set.
-
getProtocol
public com.yahoo.text.Utf8String getProtocol()- Specified by:
getProtocolin classcom.yahoo.messagebus.Routable
-
getType
public final int getType()- Specified by:
getTypein classcom.yahoo.messagebus.Routable
-