Class TempQueue
java.lang.Object
org.apache.activemq.broker.region.BaseDestination
org.apache.activemq.broker.region.Queue
org.apache.activemq.broker.region.TempQueue
- All Implemented Interfaces:
Destination,TempDestination,org.apache.activemq.command.Message.MessageDestination,org.apache.activemq.Service,IndexListener,org.apache.activemq.thread.Task,org.apache.activemq.usage.UsageListener
The Queue is a List of MessageEntry objects that are dispatched to matching
subscriptions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.store.IndexListener
IndexListener.MessageContext -
Field Summary
Fields inherited from class org.apache.activemq.broker.region.Queue
consumers, dispatchPendingList, messages, taskFactory, taskRunnerFields inherited from class org.apache.activemq.broker.region.BaseDestination
blockedProducerWarningInterval, broker, brokerService, cursorMemoryHighWaterMark, deadLetterStrategy, DEFAULT_INACTIVE_TIMEOUT_BEFORE_GC, destination, destinationStatistics, DUPLICATE_FROM_STORE_MSG_PREFIX, EXPIRE_MESSAGE_PERIOD, expireMessagesPeriod, lastBlockedProducerWarnTime, MAX_AUDIT_DEPTH, MAX_BROWSE_PAGE_SIZE, MAX_PAGE_SIZE, MAX_PRODUCERS_TO_AUDIT, memoryUsage, regionBroker, scheduler, started, store, storeUsageHighWaterMark, systemUsageFields inherited from interface org.apache.activemq.broker.region.Destination
DEFAULT_BLOCKED_PRODUCER_WARNING_INTERVAL, DEFAULT_DEAD_LETTER_STRATEGY -
Constructor Summary
ConstructorsConstructorDescriptionTempQueue(BrokerService brokerService, org.apache.activemq.command.ActiveMQDestination destination, MessageStore store, DestinationStatistics parentStats, org.apache.activemq.thread.TaskRunnerFactory taskFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubscription(ConnectionContext context, Subscription sub) voiddispose(ConnectionContext context) voidinitialize the destinationbooleanvoidsetAllowTempDestinationStealing(boolean allowTempDestinationStealing) Methods inherited from class org.apache.activemq.broker.region.Queue
acknowledge, assignGroup, assignMessageGroup, browse, clearPendingMessages, copyMatchingMessages, copyMatchingMessagesTo, copyMatchingMessagesTo, copyMessageTo, createMessageIdFilter, createSelectorFilter, doBrowse, doBrowseList, gc, getActiveMQDestination, getConsumers, getConsumersBeforeDispatchStarts, getDispatchPolicy, getLog, getMessage, getMessageGroupMapFactory, getMessageGroupOwners, getMessages, getPendingMessageCount, getPendingMessageSize, getTimeBeforeDispatchStarts, isAllConsumersExclusiveByDefault, isDispatchPaused, isOptimizedDispatch, isOptimizeStorage, isResetNeeded, isStrictOrderDispatch, isUseConsumerPriority, iterate, messageExpired, messageExpired, moveMatchingMessagesTo, moveMatchingMessagesTo, moveMatchingMessagesTo, moveMessageTo, moveMessageTo, onAdd, onUsageChanged, pageInMessages, pauseDispatch, processDispatchNotification, purge, removeAndSendToDlq, removeMatchingMessages, removeMatchingMessages, removeMatchingMessages, removeMessage, removeMessage, removeMessage, removeMessage, removeSubscription, resumeDispatch, retryMessages, rollbackPendingCursorAdditions, send, setAllConsumersExclusiveByDefault, setConsumersBeforeDispatchStarts, setDispatchPolicy, setMessageGroupMapFactory, setMessages, setOptimizedDispatch, setPrioritizedMessages, setStrictOrderDispatch, setTimeBeforeDispatchStarts, setUseConsumerPriority, singlePendingSend, start, stop, toString, wakeupMethods inherited from class org.apache.activemq.broker.region.BaseDestination
addProducer, canGC, convertToNonRangedAck, createConnectionContext, duplicateFromStore, fastProducer, getBlockedProducerWarningInterval, getCursorMemoryHighWaterMark, getDeadLetterStrategy, getDestinationSequenceId, getDestinationStatistics, getExpireMessagesPeriod, getInactiveTimeoutBeforeGC, getMaxAuditDepth, getMaxBrowsePageSize, getMaxExpirePageSize, getMaxInflatedDataSize, getMaxPageSize, getMaxProducersToAudit, getMemoryUsage, getMessageInterceptorStrategy, getMessageStore, getMinimumMessageSize, getName, getOptimizeMessageStoreInFlightLimit, getSlowConsumerStrategy, getStoreUsageHighWaterMark, getSystemUsage, getTempUsage, hasRegularConsumers, isActive, isAdvancedMessageStatisticsEnabled, isAdvancedNetworkStatisticsEnabled, isAdvisoryForConsumed, isAdvisoryForDelivery, isAdvisoryForDiscardingMessages, isAdvisoryForDispatched, isAdvisoryForFastProducers, isAdvisoryForSlowConsumers, isAdvisoryWhenFull, isAlwaysRetroactive, isDisposed, isDLQ, isDoOptimzeMessageStorage, isEnableAudit, isFlowControlLogRequired, isFull, isGcIfInactive, isGcWithNetworkConsumers, isIncludeBodyForAdvisory, isLazyDispatch, isPersistJMSRedelivered, isPrioritizedMessages, isProducerFlowControl, isReduceMemoryFootprint, isSendAdvisoryIfNoConsumers, isSendDuplicateFromStoreToDLQ, isUseCache, markForGC, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, onMessageWithNoConsumers, removeProducer, setAdvancedMessageStatisticsEnabled, setAdvancedNetworkStatisticsEnabled, setAdvisoryForConsumed, setAdvisoryForDelivery, setAdvisoryForDiscardingMessages, setAdvisoryForDispatched, setAdvisoryForFastProducers, setAdvisoryForSlowConsumers, setAdvisoryWhenFull, setAlwaysRetroactive, setBlockedProducerWarningInterval, setCursorMemoryHighWaterMark, setDeadLetterStrategy, setDoOptimzeMessageStorage, setEnableAudit, setExpireMessagesPeriod, setGcIfInactive, setGcWithNetworkConsumers, setInactiveTimeoutBeforeGC, setIncludeBodyForAdvisory, setLazyDispatch, setMaxAuditDepth, setMaxBrowsePageSize, setMaxExpirePageSize, setMaxPageSize, setMaxProducersToAudit, setMemoryUsage, setMessageInterceptorStrategy, setMinimumMessageSize, setOptimizeMessageStoreInFlightLimit, setPersistJMSRedelivered, setProducerFlowControl, setReduceMemoryFootprint, setSendAdvisoryIfNoConsumers, setSendDuplicateFromStoreToDLQ, setSlowConsumerStrategy, setStoreUsageHighWaterMark, setUseCache, slowConsumer, waitForSpace, waitForSpaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.activemq.broker.region.Destination
acknowledge, addProducer, browse, canGC, clearPendingMessages, duplicateFromStore, fastProducer, gc, getActiveMQDestination, getBlockedProducerWarningInterval, getConsumers, getCursorMemoryHighWaterMark, getDeadLetterStrategy, getDestinationStatistics, getInactiveTimeoutBeforeGC, getMaxAuditDepth, getMaxBrowsePageSize, getMaxPageSize, getMaxProducersToAudit, getMemoryUsage, getMessageStore, getMinimumMessageSize, getName, getSlowConsumerStrategy, getTempUsage, isActive, isAdvancedMessageStatisticsEnabled, isAdvancedNetworkStatisticsEnabled, isAlwaysRetroactive, isDisposed, isDoOptimzeMessageStorage, isEnableAudit, isFull, isLazyDispatch, isPrioritizedMessages, isProducerFlowControl, isSendDuplicateFromStoreToDLQ, isUseCache, markForGC, messageConsumed, messageDelivered, messageDiscarded, messageDispatched, messageExpired, processDispatchNotification, removeProducer, removeSubscription, send, setAdvancedMessageStatisticsEnabled, setAdvancedNetworkStatisticsEnabled, setAlwaysRetroactive, setBlockedProducerWarningInterval, setCursorMemoryHighWaterMark, setDoOptimzeMessageStorage, setEnableAudit, setLazyDispatch, setMaxAuditDepth, setMaxBrowsePageSize, setMaxPageSize, setMaxProducersToAudit, setMemoryUsage, setMinimumMessageSize, setProducerFlowControl, setSendDuplicateFromStoreToDLQ, setUseCache, slowConsumer, wakeupMethods inherited from interface org.apache.activemq.command.Message.MessageDestination
getMaxInflatedDataSizeMethods inherited from interface org.apache.activemq.Service
start, stopMethods inherited from interface org.apache.activemq.thread.Task
iterate
-
Constructor Details
-
TempQueue
public TempQueue(BrokerService brokerService, org.apache.activemq.command.ActiveMQDestination destination, MessageStore store, DestinationStatistics parentStats, org.apache.activemq.thread.TaskRunnerFactory taskFactory) throws Exception - Parameters:
brokerService-destination-store-parentStats-taskFactory-- Throws:
Exception
-
-
Method Details
-
initialize
Description copied from class:BaseDestinationinitialize the destination- Overrides:
initializein classQueue- Throws:
Exception
-
addSubscription
- Specified by:
addSubscriptionin interfaceDestination- Overrides:
addSubscriptionin classQueue- Throws:
Exception
-
dispose
- Specified by:
disposein interfaceDestination- Overrides:
disposein classBaseDestination- Throws:
IOException
-
isAllowTempDestinationStealing
public boolean isAllowTempDestinationStealing()- Specified by:
isAllowTempDestinationStealingin interfaceTempDestination
-
setAllowTempDestinationStealing
public void setAllowTempDestinationStealing(boolean allowTempDestinationStealing) - Specified by:
setAllowTempDestinationStealingin interfaceTempDestination
-