Package org.apache.qpid.server.queue
Interface QueueConsumer<X extends QueueConsumer<X,T>,T extends ConsumerTarget>
-
- All Superinterfaces:
ConfiguredObject<X>
,Consumer<X,T>
,ContextProvider
,MessageInstanceConsumer<T>
,PermissionedObject
,TaskExecutorProvider
public interface QueueConsumer<X extends QueueConsumer<X,T>,T extends ConsumerTarget> extends Consumer<X,T>
-
-
Field Summary
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.model.Consumer
CONSUMER_NUMBER_GENERATOR, DISTRIBUTION_MODE, EXCLUSIVE, NO_LOCAL, PRIORITY, SELECTOR, SETTLEMENT_MODE, SUSPEND_NOTIFICATION_PERIOD, SUSPEND_NOTIFICATION_PERIOD_DEFAULT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acquisitionRemoved(QueueEntry node)
boolean
allocateCredit(QueueEntry entry)
void
awaitCredit(QueueEntry entry)
void
flushBatched()
MessageInstance.StealableConsumerAcquiredState<X>
getOwningState()
Queue<?>
getQueue()
org.apache.qpid.server.queue.QueueConsumerNode
getQueueConsumerNode()
org.apache.qpid.server.queue.QueueContext
getQueueContext()
AMQPSession<?,?>
getSession()
boolean
hasInterest(QueueEntry node)
boolean
isNotifyWorkDesired()
void
noMessagesAvailable()
void
notifyWork()
void
queueDeleted()
void
restoreCredit(QueueEntry entry)
void
setQueueConsumerNode(org.apache.qpid.server.queue.QueueConsumerNode node)
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.Consumer
getBytesOut, getConsumerNumber, getDistributionMode, getLinkName, getMessagesOut, getPriority, getSelector, getSettlementMode, getUnacknowledgedBytes, getUnacknowledgedMessages, isActive, isExclusive, isNoLocal, isNonLive, isSuspended, resetStatistics, seesRequeues
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.message.MessageInstanceConsumer
acquires, close, externalStateChange, getIdentifier, getName, getTarget, isClosed, pullMessage, setNotifyWorkDesired
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
-
-
-
Method Detail
-
flushBatched
void flushBatched()
-
noMessagesAvailable
void noMessagesAvailable()
-
hasInterest
boolean hasInterest(QueueEntry node)
-
allocateCredit
boolean allocateCredit(QueueEntry entry)
-
restoreCredit
void restoreCredit(QueueEntry entry)
-
acquisitionRemoved
void acquisitionRemoved(QueueEntry node)
-
getQueueConsumerNode
org.apache.qpid.server.queue.QueueConsumerNode getQueueConsumerNode()
-
queueDeleted
void queueDeleted()
-
getQueue
Queue<?> getQueue()
-
getOwningState
MessageInstance.StealableConsumerAcquiredState<X> getOwningState()
-
getQueueContext
org.apache.qpid.server.queue.QueueContext getQueueContext()
-
awaitCredit
void awaitCredit(QueueEntry entry)
-
isNotifyWorkDesired
boolean isNotifyWorkDesired()
-
notifyWork
void notifyWork()
-
setQueueConsumerNode
void setQueueConsumerNode(org.apache.qpid.server.queue.QueueConsumerNode node)
-
getSession
AMQPSession<?,?> getSession()
- Specified by:
getSession
in interfaceConsumer<X extends QueueConsumer<X,T>,T extends ConsumerTarget>
-
-