public class LastValueQueue extends QueueImpl
Message.HDR_LAST_VALUE_NAME
property value. In other words it only retains the last
value
This is useful for example, for stock prices, where you're only interested in the latest value for a particular stock
CHECK_QUEUE_SIZE_PERIOD, CRITICAL_CONSUMER, CRITICAL_DELIVER, CRITICAL_PATH_ADD_HEAD, CRITICAL_PATH_ADD_TAIL, CRITICAL_PATHS, DEFAULT_FLUSH_LIMIT, DELIVERY_TIMEOUT, MAX_DELIVERIES_IN_LOOP, NUM_PRIORITIES, REDISTRIBUTOR_BATCH_SIZE
MAX_CONSUMERS_UNLIMITED
Constructor and Description |
---|
LastValueQueue(long persistenceID,
SimpleString address,
SimpleString name,
Filter filter,
PageSubscription pageSubscription,
SimpleString user,
boolean durable,
boolean temporary,
boolean autoCreated,
RoutingType routingType,
Integer maxConsumers,
Boolean exclusive,
Boolean purgeOnNoConsumers,
ScheduledExecutorService scheduledExecutor,
PostOffice postOffice,
StorageManager storageManager,
HierarchicalRepository<AddressSettings> addressSettingsRepository,
ArtemisExecutor executor,
ActiveMQServer server,
QueueFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addHead(MessageReference ref,
boolean scheduling) |
void |
addTail(MessageReference ref,
boolean direct) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isLastValue() |
protected void |
refRemoved(MessageReference ref) |
acknowledge, acknowledge, acknowledge, acknowledge, acknowledge, addConsumer, addHead, addRedistributor, addTail, browserIterator, cancel, cancel, cancel, cancelRedistributor, changeReferencePriority, changeReferencesPriority, checkRedelivery, close, debug, decDelivering, deleteAllReferences, deleteAllReferences, deleteMatchingReferences, deleteMatchingReferences, deleteQueue, deleteQueue, deleteReference, deliverAsync, deliverNow, deliverScheduledMessages, destroyPaging, expire, expire, expireReference, expireReferences, expireReferences, finalize, flushExecutor, forceDelivery, getAddress, getConsumerCount, getConsumers, getConsumersRefCount, getDeliveringCount, getDeliveringMessages, getDeliveringSize, getDurableDeliveringCount, getDurableDeliveringSize, getDurableMessageCount, getDurablePersistentSize, getDurableScheduledCount, getDurableScheduledSize, getExecutor, getExpiryAddress, getFilter, getGroupCount, getGroups, getGroupsUsed, getID, getMaxConsumers, getMessageCount, getMessagesAcknowledged, getMessagesAdded, getMessagesExpired, getMessagesKilled, getName, getNumberOfReferences, getPageSubscription, getPersistentSize, getRate, getReference, getRoutingName, getRoutingType, getScheduledCount, getScheduledMessages, getScheduledSize, getUniqueName, getUser, hasMatchingConsumer, incrementMesssagesAdded, isAutoCreated, isDirectDeliver, isDurable, isDurableMessage, isExclusive, isExpirationRedundant, isInternalQueue, isPaused, isPersistedPause, isPurgeOnNoConsumers, isTemporary, iterator, moveReference, moveReferences, moveReferences, moveReferencesBetweenSnFQueues, pause, pause, postAcknowledge, reacknowledge, recheckRefCount, refAdded, referenceHandled, reload, reloadPause, removeConsumer, removeReferenceWithID, resetAllGroups, resetAllIterators, resetGroup, resetMessagesAcknowledged, resetMessagesAdded, resetMessagesExpired, resetMessagesKilled, resume, retryMessages, route, routeWithAck, scheduleIfPossible, sendMessagesToDeadLetterAddress, sendMessageToDeadLetterAddress, sendToDeadLetterAddress, setConsumersRefCount, setExclusive, setInternalQueue, setMaxConsumer, setPurgeOnNoConsumers, setRoutingType, toString, unproposed
enterCritical, getCriticalAnalyzer, isExpired, leaveCritical
deleteMatchingReferences
enterCritical, isExpired, leaveCritical
public LastValueQueue(long persistenceID, SimpleString address, SimpleString name, Filter filter, PageSubscription pageSubscription, SimpleString user, boolean durable, boolean temporary, boolean autoCreated, RoutingType routingType, Integer maxConsumers, Boolean exclusive, Boolean purgeOnNoConsumers, ScheduledExecutorService scheduledExecutor, PostOffice postOffice, StorageManager storageManager, HierarchicalRepository<AddressSettings> addressSettingsRepository, ArtemisExecutor executor, ActiveMQServer server, QueueFactory factory)
public void addTail(MessageReference ref, boolean direct)
public void addHead(MessageReference ref, boolean scheduling)
protected void refRemoved(MessageReference ref)
refRemoved
in class QueueImpl
public boolean isLastValue()
isLastValue
in interface Queue
isLastValue
in class QueueImpl
Copyright © 2018 JBoss by Red Hat. All rights reserved.