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 Constructor Description DocumentReply(int type)
Constructs a new reply of given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentProtocol.Priority
getPriority()
Returns the priority tag for this message.com.yahoo.text.Utf8String
getProtocol()
int
getType()
void
setPriority(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, swapState
-
-
-
-
Method Detail
-
getPriority
public DocumentProtocol.Priority getPriority()
Returns the priority tag for this message.- Returns:
- The priority.
-
setPriority
public void setPriority(DocumentProtocol.Priority priority)
Sets the priority tag for this message.- Parameters:
priority
- The priority to set.
-
getProtocol
public com.yahoo.text.Utf8String getProtocol()
- Specified by:
getProtocol
in classcom.yahoo.messagebus.Routable
-
getType
public final int getType()
- Specified by:
getType
in classcom.yahoo.messagebus.Routable
-
-