Class DocumentMessage
java.lang.Object
com.yahoo.messagebus.Routable
com.yahoo.messagebus.Message
com.yahoo.documentapi.messagebus.protocol.DocumentMessage
- Direct Known Subclasses:
CreateVisitorMessage,DestroyVisitorMessage,GetBucketListMessage,GetBucketStateMessage,GetDocumentMessage,RemoveLocationMessage,StatBucketMessage,TestAndSetMessage,VisitorMessage
public abstract class DocumentMessage
extends com.yahoo.messagebus.Message
- Author:
- Simon Thoresen Hult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DocumentReplyCreates and returns a reply to this message.intDeprecated, for removal: This API element is subject to removal in a future version.explicit operation priority is deprecatedcom.yahoo.text.Utf8StringvoidsetPriority(DocumentProtocol.Priority priority) Deprecated, for removal: This API element is subject to removal in a future version.specifying explicit operation priority is deprecatedvoidswapState(com.yahoo.messagebus.Routable rhs) Methods inherited from class com.yahoo.messagebus.Message
getBucketSequence, getRetry, getRetryEnabled, getRoute, getSequenceId, getTimeReceived, getTimeRemaining, getTimeRemainingNow, hasBucketSequence, hasSequenceId, isExpired, setRetry, setRetryEnabled, setRoute, setTimeReceived, setTimeReceivedNow, setTimeRemainingMethods inherited from class com.yahoo.messagebus.Routable
discard, getCallStack, getContext, getTrace, getType, popHandler, pushHandler, setContext
-
Constructor Details
-
DocumentMessage
public DocumentMessage()Constructs a new message with no content.
-
-
Method Details
-
createReply
Creates and returns a reply to this message.- Returns:
- The created reply.
-
swapState
public void swapState(com.yahoo.messagebus.Routable rhs) - Overrides:
swapStatein classcom.yahoo.messagebus.Message
-
getPriority
Deprecated, for removal: This API element is subject to removal in a future version.explicit operation priority is deprecatedReturns the priority tag for this message. This is an optional tag added for VDS that is not interpreted by the document protocol.- Returns:
- The priority.
-
setPriority
Deprecated, for removal: This API element is subject to removal in a future version.specifying explicit operation priority is deprecatedSets the priority tag for this message.- Parameters:
priority- The priority to set.
-
getApproxSize
public int getApproxSize()- Overrides:
getApproxSizein classcom.yahoo.messagebus.Message
-
getProtocol
public com.yahoo.text.Utf8String getProtocol()- Specified by:
getProtocolin classcom.yahoo.messagebus.Routable
-