Class GetBucketStateMessage
java.lang.Object
com.yahoo.messagebus.Routable
com.yahoo.messagebus.Message
com.yahoo.documentapi.messagebus.protocol.DocumentMessage
com.yahoo.documentapi.messagebus.protocol.GetBucketStateMessage
This message is a request to return the state of a given bucket. The corresponding reply is
GetBucketStateReply.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorsConstructorDescriptionGetBucketStateMessage(com.yahoo.document.BucketId bucket) Constructs a new reply with initial content. -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a reply to this message.intcom.yahoo.document.BucketIdReturns the bucket whose state this contains.longintgetType()voidsetBucketId(com.yahoo.document.BucketId bucket) Sets the bucket whose state this contains.Methods inherited from class com.yahoo.documentapi.messagebus.protocol.DocumentMessage
getPriority, getProtocol, setPriority, swapStateMethods inherited from class com.yahoo.messagebus.Message
getBucketSequence, getRetry, getRetryEnabled, getRoute, getTimeReceived, getTimeRemaining, getTimeRemainingNow, hasBucketSequence, hasSequenceId, isExpired, setRetry, setRetryEnabled, setRoute, setTimeReceived, setTimeReceivedNow, setTimeRemainingMethods inherited from class com.yahoo.messagebus.Routable
discard, getCallStack, getContext, getTrace, popHandler, pushHandler, setContext
-
Constructor Details
-
GetBucketStateMessage
public GetBucketStateMessage(com.yahoo.document.BucketId bucket) Constructs a new reply with initial content.- Parameters:
bucket- The bucket whose state to reply with.
-
-
Method Details
-
getBucketId
public com.yahoo.document.BucketId getBucketId()Returns the bucket whose state this contains.- Returns:
- The bucket id.
-
setBucketId
public void setBucketId(com.yahoo.document.BucketId bucket) Sets the bucket whose state this contains.- Parameters:
bucket- The bucket id to set.
-
createReply
Description copied from class:DocumentMessageCreates and returns a reply to this message.- Specified by:
createReplyin classDocumentMessage- Returns:
- The created reply.
-
getSequenceId
public long getSequenceId()- Overrides:
getSequenceIdin classcom.yahoo.messagebus.Message
-
getApproxSize
public int getApproxSize()- Overrides:
getApproxSizein classDocumentMessage
-
getType
public int getType()- Specified by:
getTypein classcom.yahoo.messagebus.Routable
-