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
-
Method Summary
Modifier and TypeMethodDescriptionabstract DocumentReply
Creates and returns a reply to this message.int
Deprecated, for removal: This API element is subject to removal in a future version.explicit operation priority is deprecatedcom.yahoo.text.Utf8String
void
setPriority
(DocumentProtocol.Priority priority) Deprecated, for removal: This API element is subject to removal in a future version.specifying explicit operation priority is deprecatedvoid
swapState
(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, setTimeRemaining
Methods 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:
swapState
in 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:
getApproxSize
in classcom.yahoo.messagebus.Message
-
getProtocol
public com.yahoo.text.Utf8String getProtocol()- Specified by:
getProtocol
in classcom.yahoo.messagebus.Routable
-