Package org.apache.qpid.server.queue
Class AbstractQueue<X extends AbstractQueue<X>>
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<X>
-
- org.apache.qpid.server.queue.AbstractQueue<X>
-
- All Implemented Interfaces:
Comparable<X>
,DestinationReferrer
,MessageDestination
,MessageNode
,MessageSource
,ConfiguredObject<X>
,ContextProvider
,PermissionedObject
,Queue<X>
,TaskExecutorProvider
,BaseQueue
,MessageGroupManager.ConsumerResetHelper
,TransactionLogResource
,TransactionMonitor
,Deletable<X>
- Direct Known Subclasses:
LastValueQueueImpl
,OutOfOrderQueue
,StandardQueueImpl
public abstract class AbstractQueue<X extends AbstractQueue<X>> extends AbstractConfiguredObject<X> implements Queue<X>, MessageGroupManager.ConsumerResetHelper, TransactionMonitor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AbstractQueue.QueueEntryFilter
-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V,A>, AbstractConfiguredObject.ChainedListenableFuture<V>, AbstractConfiguredObject.ChainedSettableFuture<V>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
Nested classes/interfaces inherited from interface org.apache.qpid.server.message.MessageSource
MessageSource.ConsumerAccessRefused, MessageSource.ExistingConsumerPreventsExclusive, MessageSource.ExistingExclusiveConsumer, MessageSource.MessageConversionExceptionHandlingPolicy, MessageSource.QueueDeleted
-
Nested classes/interfaces inherited from interface org.apache.qpid.server.model.Queue
Queue.BehaviourOnUnknownDeclareArgument, Queue.ExpiryPolicy
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
SECURED_STRING_VALUE
-
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.Queue
ALERT_REPEAT_GAP, ALERT_THRESHOLD_MESSAGE_AGE, ALERT_THRESHOLD_MESSAGE_SIZE, ALERT_THRESHOLD_QUEUE_DEPTH_BYTES, ALERT_THRESHOLD_QUEUE_DEPTH_MESSAGES, ALTERNATE_BINDING, CLASS_DESCRIPTION, CREATING_LINK_INFO, DEFAULT_ALERT_REPEAT_GAP, DEFAULT_ALERT_THRESHOLD_MESSAGE_AGE, DEFAULT_ALERT_THRESHOLD_MESSAGE_COUNT, DEFAULT_ALERT_THRESHOLD_MESSAGE_SIZE, DEFAULT_ALERT_THRESHOLD_QUEUE_DEPTH, DEFAULT_ALTERNATE_BINDING, DEFAULT_ENSURE_NON_DESTRUCTIVE_CONSUMERS, DEFAULT_EXCLUSIVITY, DEFAULT_EXPIRY_POLICY, DEFAULT_FILTERS, DEFAULT_FLOW_CONTROL_RESUME_LIMIT, DEFAULT_HOLD_ON_PUBLISH_ENABLED, DEFAULT_MAXIMUM_DELIVERY_ATTEMPTS, DEFAULT_MAXIMUM_DISTINCT_GROUPS, DEFAULT_MAXIMUM_LIVE_CONSUMERS, DEFAULT_MAXIMUM_MESSAGE_TTL, DEFAULT_MAXIMUM_QUEUE_DEPTH_BYTES, DEFAULT_MAXIMUM_QUEUE_DEPTH_MESSAGES, DEFAULT_MESSAGE_CONVERSION_EXCEPTION_HANDLING_POLICY, DEFAULT_MESSAGE_DURABILTY, DEFAULT_MESSAGE_GROUP_TYPE, DEFAULT_MIME_TYPE_TO_FILE_EXTENSION, DEFAULT_MINIMUM_MESSAGE_TTL, DEFAULT_OVERFLOW_POLICY, DEFAULT_QUEUE_SCAVANGE_COUNT, DEFAULT_SHARED_MESSAGE_GROUP, ENSURE_NONDESTRUCTIVE_CONSUMERS, EXCLUSIVE, EXPIRY_POLICY, HOLD_ON_PUBLISH_ENABLED, MAXIMUM_DELIVERY_ATTEMPTS, MAXIMUM_LIVE_CONSUMERS, MAXIMUM_MESSAGE_TTL, MAXIMUM_QUEUE_DEPTH_BYTES, MAXIMUM_QUEUE_DEPTH_MESSAGES, MESSAGE_CONVERSION_EXCEPTION_HANDLING_POLICY, MESSAGE_DURABILITY, MESSAGE_GROUP_DEFAULT_GROUP, MESSAGE_GROUP_KEY_OVERRIDE, MESSAGE_GROUP_TYPE, MIME_TYPE_TO_FILE_EXTENSION, MINIMUM_MESSAGE_TTL, NO_LOCAL, ON_UNKNOWN_QUEUE_DECLARE_OPTION, OVERFLOW_POLICY, OWNER, QUEUE_DEFAULT_ALTERNATE_BINDING, QUEUE_DEFAULT_EXCLUSIVITY_POLICY, QUEUE_FLOW_RESUME_LIMIT, QUEUE_FLOW_STOPPED, QUEUE_SCAVANGE_COUNT, UNKNOWN_QUEUE_DECLARE_ARGUMENT_BEHAVIOUR_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractQueue(Map<String,Object> attributes, QueueManagingVirtualHost<?> virtualHost)
-
Method Summary
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addChildAsync, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeDelete, childAdded, childRemoved, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleteChildren, deleteNoChecks, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getAccessControl, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, managesChildStorage, newToken, notifyStateChanged, onExceptionInOpen, onResolve, open, openAsync, postResolve, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, updateModel, validateChildDelete
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, 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.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.message.MessageDestination
getName, isDurable
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
Methods inherited from interface org.apache.qpid.server.store.TransactionLogResource
getId, getName
-
-
-
-
Constructor Detail
-
AbstractQueue
protected AbstractQueue(Map<String,Object> attributes, QueueManagingVirtualHost<?> virtualHost)
-
-
Method Detail
-
onCreate
protected void onCreate()
- Overrides:
onCreate
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
validateOnCreate
protected void validateOnCreate()
- Overrides:
validateOnCreate
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
onValidate
public void onValidate()
Description copied from class:AbstractConfiguredObject
Validation performed for configured object creation and opening.- Overrides:
onValidate
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
onOpen
protected void onOpen()
- Overrides:
onOpen
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
isExclusive
public boolean isExclusive()
- Specified by:
isExclusive
in interfaceQueue<X extends AbstractQueue<X>>
-
getAlternateBinding
public AlternateBinding getAlternateBinding()
- Specified by:
getAlternateBinding
in interfaceQueue<X extends AbstractQueue<X>>
-
setAlternateBinding
public void setAlternateBinding(AlternateBinding alternateBinding)
-
getAlternateBindingDestination
public MessageDestination getAlternateBindingDestination()
- Specified by:
getAlternateBindingDestination
in interfaceMessageDestination
-
getDefaultFilters
public Map<String,Map<String,List<String>>> getDefaultFilters()
- Specified by:
getDefaultFilters
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageDurability
public final MessageDurability getMessageDurability()
- Specified by:
getMessageDurability
in interfaceQueue<X extends AbstractQueue<X>>
- Specified by:
getMessageDurability
in interfaceTransactionLogResource
-
getMinimumMessageTtl
public long getMinimumMessageTtl()
- Specified by:
getMinimumMessageTtl
in interfaceQueue<X extends AbstractQueue<X>>
-
getMaximumMessageTtl
public long getMaximumMessageTtl()
- Specified by:
getMaximumMessageTtl
in interfaceQueue<X extends AbstractQueue<X>>
-
isEnsureNondestructiveConsumers
public boolean isEnsureNondestructiveConsumers()
- Specified by:
isEnsureNondestructiveConsumers
in interfaceQueue<X extends AbstractQueue<X>>
-
isHoldOnPublishEnabled
public boolean isHoldOnPublishEnabled()
- Specified by:
isHoldOnPublishEnabled
in interfaceQueue<X extends AbstractQueue<X>>
-
getMaximumQueueDepthMessages
public long getMaximumQueueDepthMessages()
- Specified by:
getMaximumQueueDepthMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getMaximumQueueDepthBytes
public long getMaximumQueueDepthBytes()
- Specified by:
getMaximumQueueDepthBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getExpiryPolicy
public Queue.ExpiryPolicy getExpiryPolicy()
- Specified by:
getExpiryPolicy
in interfaceQueue<X extends AbstractQueue<X>>
-
getAvailableAttributes
public Collection<String> getAvailableAttributes()
- Specified by:
getAvailableAttributes
in interfaceQueue<X extends AbstractQueue<X>>
-
getOwner
public String getOwner()
- Specified by:
getOwner
in interfaceQueue<X extends AbstractQueue<X>>
-
getCreatingLinkInfo
public CreatingLinkInfo getCreatingLinkInfo()
- Specified by:
getCreatingLinkInfo
in interfaceQueue<X extends AbstractQueue<X>>
-
getVirtualHost
public QueueManagingVirtualHost<?> getVirtualHost()
- Specified by:
getVirtualHost
in interfaceQueue<X extends AbstractQueue<X>>
-
addConsumer
public <T extends ConsumerTarget<T>> org.apache.qpid.server.queue.QueueConsumerImpl<T> addConsumer(T target, FilterManager filters, Class<? extends ServerMessage> messageClass, String consumerName, EnumSet<ConsumerOption> optionSet, Integer priority) throws MessageSource.ExistingExclusiveConsumer, MessageSource.ExistingConsumerPreventsExclusive, MessageSource.ConsumerAccessRefused, MessageSource.QueueDeleted
-
beforeClose
protected com.google.common.util.concurrent.ListenableFuture<Void> beforeClose()
- Overrides:
beforeClose
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
close
public void close()
- Specified by:
close
in interfaceConfiguredObject<X extends AbstractQueue<X>>
- Specified by:
close
in interfaceMessageSource
- Overrides:
close
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
getConsumers
public Collection<QueueConsumer<?,?>> getConsumers()
- Specified by:
getConsumers
in interfaceMessageSource
- Specified by:
getConsumers
in interfaceQueue<X extends AbstractQueue<X>>
-
resetSubPointersForGroups
public void resetSubPointersForGroups(QueueConsumer<?,?> consumer)
-
getPublishingLinks
public Collection<PublishingLink> getPublishingLinks()
- Specified by:
getPublishingLinks
in interfaceQueue<X extends AbstractQueue<X>>
-
getBindingCount
public int getBindingCount()
- Specified by:
getBindingCount
in interfaceQueue<X extends AbstractQueue<X>>
-
getProducerCount
public long getProducerCount()
- Specified by:
getProducerCount
in interfaceQueue<X extends AbstractQueue<X>>
-
getLogSubject
public LogSubject getLogSubject()
- Specified by:
getLogSubject
in interfaceQueue<X extends AbstractQueue<X>>
-
enqueue
public final void enqueue(ServerMessage message, Action<? super MessageInstance> action, MessageEnqueueRecord enqueueRecord)
-
recover
public final void recover(ServerMessage message, MessageEnqueueRecord enqueueRecord)
- Specified by:
recover
in interfaceQueue<X extends AbstractQueue<X>>
-
completeRecovery
public final void completeRecovery()
- Specified by:
completeRecovery
in interfaceQueue<X extends AbstractQueue<X>>
-
doEnqueue
protected QueueEntry doEnqueue(ServerMessage message, Action<? super MessageInstance> action, MessageEnqueueRecord enqueueRecord)
-
checkConsumersNotAheadOfDelivery
protected void checkConsumersNotAheadOfDelivery(QueueEntry entry)
-
getTotalDequeuedMessages
public long getTotalDequeuedMessages()
- Specified by:
getTotalDequeuedMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalEnqueuedMessages
public long getTotalEnqueuedMessages()
- Specified by:
getTotalEnqueuedMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
resetStatistics
public void resetStatistics()
- Specified by:
resetStatistics
in interfaceQueue<X extends AbstractQueue<X>>
-
resetSubPointersForGroups
public void resetSubPointersForGroups(QueueEntry entry)
- Specified by:
resetSubPointersForGroups
in interfaceMessageGroupManager.ConsumerResetHelper
-
requeue
public void requeue(QueueEntry entry)
- Specified by:
requeue
in interfaceQueue<X extends AbstractQueue<X>>
-
getConsumerCount
public int getConsumerCount()
- Specified by:
getConsumerCount
in interfaceQueue<X extends AbstractQueue<X>>
-
getConsumerCountWithCredit
public int getConsumerCountWithCredit()
- Specified by:
getConsumerCountWithCredit
in interfaceQueue<X extends AbstractQueue<X>>
-
isUnused
public boolean isUnused()
- Specified by:
isUnused
in interfaceQueue<X extends AbstractQueue<X>>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceQueue<X extends AbstractQueue<X>>
-
getQueueDepthMessages
public int getQueueDepthMessages()
- Specified by:
getQueueDepthMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getQueueDepthBytes
public long getQueueDepthBytes()
- Specified by:
getQueueDepthBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getAvailableBytes
public long getAvailableBytes()
- Specified by:
getAvailableBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getAvailableMessages
public int getAvailableMessages()
- Specified by:
getAvailableMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getAvailableBytesHighWatermark
public long getAvailableBytesHighWatermark()
- Specified by:
getAvailableBytesHighWatermark
in interfaceQueue<X extends AbstractQueue<X>>
-
getAvailableMessagesHighWatermark
public int getAvailableMessagesHighWatermark()
- Specified by:
getAvailableMessagesHighWatermark
in interfaceQueue<X extends AbstractQueue<X>>
-
getQueueDepthBytesHighWatermark
public long getQueueDepthBytesHighWatermark()
- Specified by:
getQueueDepthBytesHighWatermark
in interfaceQueue<X extends AbstractQueue<X>>
-
getQueueDepthMessagesHighWatermark
public int getQueueDepthMessagesHighWatermark()
- Specified by:
getQueueDepthMessagesHighWatermark
in interfaceQueue<X extends AbstractQueue<X>>
-
getOldestMessageArrivalTime
public long getOldestMessageArrivalTime()
- Specified by:
getOldestMessageArrivalTime
in interfaceQueue<X extends AbstractQueue<X>>
-
getOldestMessageAge
public long getOldestMessageAge()
- Specified by:
getOldestMessageAge
in interfaceQueue<X extends AbstractQueue<X>>
-
getMaximumLiveConsumers
public int getMaximumLiveConsumers()
- Specified by:
getMaximumLiveConsumers
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessagesOnTheQueue
public List<QueueEntry> getMessagesOnTheQueue()
- Specified by:
getMessagesOnTheQueue
in interfaceQueue<X extends AbstractQueue<X>>
-
queueEntryIterator
public QueueEntryIterator queueEntryIterator()
- Specified by:
queueEntryIterator
in interfaceQueue<X extends AbstractQueue<X>>
-
compareTo
public int compareTo(X o)
- Specified by:
compareTo
in interfaceComparable<X extends AbstractQueue<X>>
-
getQueueConsumerManager
protected final QueueConsumerManagerImpl getQueueConsumerManager()
-
getEventLogger
public EventLogger getEventLogger()
-
getMessageOnTheQueue
public QueueEntry getMessageOnTheQueue(long messageId)
- Specified by:
getMessageOnTheQueue
in interfaceQueue<X extends AbstractQueue<X>>
-
visit
public void visit(QueueEntryVisitor visitor)
- Specified by:
visit
in interfaceQueue<X extends AbstractQueue<X>>
-
clearQueue
public long clearQueue()
- Specified by:
clearQueue
in interfaceQueue<X extends AbstractQueue<X>>
-
deleteEntry
public void deleteEntry(QueueEntry entry)
- Specified by:
deleteEntry
in interfaceQueue<X extends AbstractQueue<X>>
-
addDeleteTask
public void addDeleteTask(Action<? super X> task)
- Specified by:
addDeleteTask
in interfaceDeletable<X extends AbstractQueue<X>>
-
removeDeleteTask
public void removeDeleteTask(Action<? super X> task)
- Specified by:
removeDeleteTask
in interfaceDeletable<X extends AbstractQueue<X>>
-
deleteAndReturnCount
public int deleteAndReturnCount()
- Specified by:
deleteAndReturnCount
in interfaceQueue<X extends AbstractQueue<X>>
-
deleteAndReturnCountAsync
public com.google.common.util.concurrent.ListenableFuture<Integer> deleteAndReturnCountAsync()
- Specified by:
deleteAndReturnCountAsync
in interfaceQueue<X extends AbstractQueue<X>>
-
onClose
protected com.google.common.util.concurrent.ListenableFuture<Void> onClose()
- Overrides:
onClose
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
checkCapacity
public void checkCapacity()
- Specified by:
checkCapacity
in interfaceQueue<X extends AbstractQueue<X>>
-
isEntryAheadOfConsumer
public boolean isEntryAheadOfConsumer(QueueEntry entry, QueueConsumer<?,?> sub)
- Specified by:
isEntryAheadOfConsumer
in interfaceMessageGroupManager.ConsumerResetHelper
-
checkMessageStatus
public void checkMessageStatus()
Description copied from interface:Queue
Checks the status of messages on the queue, purging expired ones, firing age related alerts etc.- Specified by:
checkMessageStatus
in interfaceQueue<X extends AbstractQueue<X>>
-
checkValid
public boolean checkValid(QueueEntry queueEntry)
- Specified by:
checkValid
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalMalformedBytes
public long getTotalMalformedBytes()
- Specified by:
getTotalMalformedBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalMalformedMessages
public long getTotalMalformedMessages()
- Specified by:
getTotalMalformedMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
reallocateMessages
public void reallocateMessages()
- Specified by:
reallocateMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getAlertRepeatGap
public long getAlertRepeatGap()
- Specified by:
getAlertRepeatGap
in interfaceQueue<X extends AbstractQueue<X>>
-
getAlertThresholdMessageAge
public long getAlertThresholdMessageAge()
- Specified by:
getAlertThresholdMessageAge
in interfaceQueue<X extends AbstractQueue<X>>
-
getAlertThresholdQueueDepthMessages
public long getAlertThresholdQueueDepthMessages()
- Specified by:
getAlertThresholdQueueDepthMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getAlertThresholdQueueDepthBytes
public long getAlertThresholdQueueDepthBytes()
- Specified by:
getAlertThresholdQueueDepthBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getAlertThresholdMessageSize
public long getAlertThresholdMessageSize()
- Specified by:
getAlertThresholdMessageSize
in interfaceQueue<X extends AbstractQueue<X>>
-
getNotificationChecks
public Set<NotificationCheck> getNotificationChecks()
- Specified by:
getNotificationChecks
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalEnqueuedBytes
public long getTotalEnqueuedBytes()
- Specified by:
getTotalEnqueuedBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalDequeuedBytes
public long getTotalDequeuedBytes()
- Specified by:
getTotalDequeuedBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getPersistentEnqueuedBytes
public long getPersistentEnqueuedBytes()
- Specified by:
getPersistentEnqueuedBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getPersistentDequeuedBytes
public long getPersistentDequeuedBytes()
- Specified by:
getPersistentDequeuedBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getPersistentEnqueuedMessages
public long getPersistentEnqueuedMessages()
- Specified by:
getPersistentEnqueuedMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getPersistentDequeuedMessages
public long getPersistentDequeuedMessages()
- Specified by:
getPersistentDequeuedMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
isHeld
public boolean isHeld(QueueEntry queueEntry, long evaluationTime)
- Specified by:
isHeld
in interfaceQueue<X extends AbstractQueue<X>>
-
toString
public String toString()
- Overrides:
toString
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
getUnacknowledgedMessages
public long getUnacknowledgedMessages()
- Specified by:
getUnacknowledgedMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getUnacknowledgedBytes
public long getUnacknowledgedBytes()
- Specified by:
getUnacknowledgedBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getMaximumDeliveryAttempts
public int getMaximumDeliveryAttempts()
- Specified by:
getMaximumDeliveryAttempts
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalExpiredBytes
public long getTotalExpiredBytes()
- Specified by:
getTotalExpiredBytes
in interfaceQueue<X extends AbstractQueue<X>>
-
getTotalExpiredMessages
public long getTotalExpiredMessages()
- Specified by:
getTotalExpiredMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
setNotificationListener
public void setNotificationListener(QueueNotificationListener listener)
- Specified by:
setNotificationListener
in interfaceQueue<X extends AbstractQueue<X>>
-
route
public <M extends ServerMessage<? extends StorableMessageMetaData>> RoutingResult<M> route(M message, String routingAddress, InstanceProperties instanceProperties)
Description copied from interface:MessageDestination
Routes a message- Specified by:
route
in interfaceMessageDestination
- Parameters:
message
- the message to be routedroutingAddress
- the routing addressinstanceProperties
- the instance properties
-
verifySessionAccess
public boolean verifySessionAccess(AMQPSession<?,?> session)
- Specified by:
verifySessionAccess
in interfaceMessageSource
-
onDelete
protected com.google.common.util.concurrent.ListenableFuture<Void> onDelete()
- Overrides:
onDelete
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
getExclusive
public ExclusivityPolicy getExclusive()
- Specified by:
getExclusive
in interfaceQueue<X extends AbstractQueue<X>>
-
getOverflowPolicy
public OverflowPolicy getOverflowPolicy()
- Specified by:
getOverflowPolicy
in interfaceQueue<X extends AbstractQueue<X>>
-
isNoLocal
public boolean isNoLocal()
- Specified by:
isNoLocal
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageGroupKeyOverride
public String getMessageGroupKeyOverride()
- Specified by:
getMessageGroupKeyOverride
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageGroupType
public MessageGroupType getMessageGroupType()
- Specified by:
getMessageGroupType
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageGroupDefaultGroup
public String getMessageGroupDefaultGroup()
- Specified by:
getMessageGroupDefaultGroup
in interfaceQueue<X extends AbstractQueue<X>>
-
getMaximumDistinctGroups
public int getMaximumDistinctGroups()
- Specified by:
getMaximumDistinctGroups
in interfaceQueue<X extends AbstractQueue<X>>
-
isQueueFlowStopped
public boolean isQueueFlowStopped()
- Specified by:
isQueueFlowStopped
in interfaceQueue<X extends AbstractQueue<X>>
-
getChildren
public <C extends ConfiguredObject> Collection<C> getChildren(Class<C> clazz)
Description copied from interface:ConfiguredObject
Return children of the ConfiguredObject of the given class- Specified by:
getChildren
in interfaceConfiguredObject<X extends AbstractQueue<X>>
- Overrides:
getChildren
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
- Parameters:
clazz
- the class of the children to return- Returns:
- the children
-
changeAttributes
protected void changeAttributes(Map<String,Object> attributes)
- Overrides:
changeAttributes
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
validateChange
protected void validateChange(ConfiguredObject<?> proxyForValidation, Set<String> changedAttributes)
- Overrides:
validateChange
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
getAddressSpace
public NamedAddressSpace getAddressSpace()
- Specified by:
getAddressSpace
in interfaceMessageDestination
-
authorisePublish
public void authorisePublish(SecurityToken token, Map<String,Object> arguments) throws AccessControlException
- Specified by:
authorisePublish
in interfaceMessageDestination
- Throws:
AccessControlException
-
logOperation
protected void logOperation(String operation)
- Overrides:
logOperation
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
moveMessages
public List<Long> moveMessages(Queue<?> destination, List<Long> messageIds, String selector, int limit)
- Specified by:
moveMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
copyMessages
public List<Long> copyMessages(Queue<?> destination, List<Long> messageIds, String selector, int limit)
- Specified by:
copyMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
deleteMessages
public List<Long> deleteMessages(List<Long> messageIds, String selector, int limit)
- Specified by:
deleteMessages
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageContent
public Content getMessageContent(long messageId, long limit, boolean returnJson, boolean decompressBeforeLimiting)
- Specified by:
getMessageContent
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageInfo
public List<MessageInfo> getMessageInfo(int first, int last, boolean includeHeaders)
- Specified by:
getMessageInfo
in interfaceQueue<X extends AbstractQueue<X>>
-
getMessageInfoById
public MessageInfo getMessageInfoById(long messageId, boolean includeHeaders)
- Specified by:
getMessageInfoById
in interfaceQueue<X extends AbstractQueue<X>>
-
getLeastSignificantOldestEntry
public QueueEntry getLeastSignificantOldestEntry()
- Specified by:
getLeastSignificantOldestEntry
in interfaceQueue<X extends AbstractQueue<X>>
-
removeReference
public void removeReference(DestinationReferrer destinationReferrer)
- Specified by:
removeReference
in interfaceMessageDestination
-
addReference
public void addReference(DestinationReferrer destinationReferrer)
- Specified by:
addReference
in interfaceMessageDestination
-
linkAdded
public void linkAdded(MessageSender sender, PublishingLink link)
- Specified by:
linkAdded
in interfaceMessageDestination
-
linkRemoved
public void linkRemoved(MessageSender sender, PublishingLink link)
- Specified by:
linkRemoved
in interfaceMessageDestination
-
getMessageConversionExceptionHandlingPolicy
public MessageSource.MessageConversionExceptionHandlingPolicy getMessageConversionExceptionHandlingPolicy()
- Specified by:
getMessageConversionExceptionHandlingPolicy
in interfaceMessageSource
- Specified by:
getMessageConversionExceptionHandlingPolicy
in interfaceQueue<X extends AbstractQueue<X>>
-
registerTransaction
public void registerTransaction(ServerTransaction tx)
- Specified by:
registerTransaction
in interfaceTransactionMonitor
-
unregisterTransaction
public void unregisterTransaction(ServerTransaction tx)
- Specified by:
unregisterTransaction
in interfaceTransactionMonitor
-
logCreated
protected void logCreated(Map<String,Object> attributes, Outcome outcome)
- Overrides:
logCreated
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
logRecovered
protected void logRecovered(Outcome outcome)
- Overrides:
logRecovered
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
logDeleted
protected void logDeleted(Outcome outcome)
- Overrides:
logDeleted
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
logUpdated
protected void logUpdated(Map<String,Object> attributes, Outcome outcome)
- Overrides:
logUpdated
in classAbstractConfiguredObject<X extends AbstractQueue<X>>
-
-