public interface Queue extends Bindable
Modifier and Type | Method and Description |
---|---|
void |
acknowledge(MessageReference ref) |
void |
acknowledge(Transaction tx,
MessageReference ref) |
void |
addConsumer(Consumer consumer) |
void |
addHead(MessageReference ref) |
void |
addRedistributor(long delay) |
void |
addTail(MessageReference ref) |
void |
addTail(MessageReference ref,
boolean direct) |
void |
cancel(MessageReference reference,
long timeBase) |
void |
cancel(Transaction tx,
MessageReference ref) |
void |
cancelRedistributor() |
boolean |
changeReferencePriority(long messageID,
byte newPriority) |
int |
changeReferencesPriority(Filter filter,
byte newPriority) |
boolean |
checkRedelivery(MessageReference ref,
long timeBase) |
void |
close() |
int |
deleteAllReferences() |
int |
deleteMatchingReferences(Filter filter) |
boolean |
deleteReference(long messageID) |
void |
deliverAsync() |
void |
expire(MessageReference ref) |
boolean |
expireReference(long messageID) |
void |
expireReferences() |
int |
expireReferences(Filter filter)
Expire all the references in the queue which matches the filter
|
boolean |
flushExecutor() |
void |
forceDelivery()
This method will make sure that any pending message (including paged message) will be delivered
|
SimpleString |
getAddress() |
int |
getConsumerCount() |
Collection<Consumer> |
getConsumers() |
int |
getDeliveringCount() |
Executor |
getExecutor() |
Filter |
getFilter() |
long |
getID() |
long |
getInstantMessageCount()
Return the current message count without waiting for scheduled executors to finish
|
long |
getInstantMessagesAdded() |
long |
getMessageCount() |
long |
getMessagesAdded() |
SimpleString |
getName() |
PageSubscription |
getPageSubscription() |
MessageReference |
getReference(long id) |
int |
getScheduledCount() |
List<MessageReference> |
getScheduledMessages() |
boolean |
hasMatchingConsumer(ServerMessage message) |
boolean |
isDirectDeliver() |
boolean |
isDurable() |
boolean |
isInternalQueue()
We can't send stuff to DLQ on queues used on clustered-bridge-communication
|
boolean |
isPaused() |
boolean |
isTemporary() |
LinkedListIterator<MessageReference> |
iterator() |
boolean |
moveReference(long messageID,
SimpleString toAddress) |
boolean |
moveReference(long messageID,
SimpleString toAddress,
boolean rejectDuplicates) |
int |
moveReferences(Filter filter,
SimpleString toAddress) |
int |
moveReferences(Filter filter,
SimpleString toAddress,
boolean rejectDuplicates) |
void |
pause()
Pauses the queue.
|
void |
reacknowledge(Transaction tx,
MessageReference ref) |
void |
referenceHandled() |
void |
reload(MessageReference ref) |
void |
removeConsumer(Consumer consumer) |
MessageReference |
removeReferenceWithID(long id) |
void |
resetAllIterators() |
void |
resume()
Resumes the delivery of message for the queue.
|
int |
sendMessagesToDeadLetterAddress(Filter filter) |
boolean |
sendMessageToDeadLetterAddress(long messageID) |
void |
setExpiryAddress(SimpleString expiryAddress) |
void |
setInternalQueue(boolean internalQueue) |
SimpleString getName()
long getID()
Filter getFilter()
PageSubscription getPageSubscription()
boolean isDurable()
boolean isTemporary()
int getConsumerCount()
void reload(MessageReference ref)
void addTail(MessageReference ref)
void addTail(MessageReference ref, boolean direct)
void addHead(MessageReference ref)
void acknowledge(MessageReference ref) throws Exception
Exception
void acknowledge(Transaction tx, MessageReference ref) throws Exception
Exception
void reacknowledge(Transaction tx, MessageReference ref) throws Exception
Exception
void cancel(Transaction tx, MessageReference ref)
void cancel(MessageReference reference, long timeBase) throws Exception
Exception
void deliverAsync()
void forceDelivery()
long getMessageCount()
long getInstantMessageCount()
int getDeliveringCount()
void referenceHandled()
int getScheduledCount()
List<MessageReference> getScheduledMessages()
long getMessagesAdded()
long getInstantMessagesAdded()
MessageReference removeReferenceWithID(long id) throws Exception
Exception
MessageReference getReference(long id)
int deleteMatchingReferences(Filter filter) throws Exception
Exception
int expireReferences(Filter filter) throws Exception
Exception
void expire(MessageReference ref) throws Exception
Exception
boolean sendMessageToDeadLetterAddress(long messageID) throws Exception
Exception
int sendMessagesToDeadLetterAddress(Filter filter) throws Exception
Exception
boolean changeReferencePriority(long messageID, byte newPriority) throws Exception
Exception
int changeReferencesPriority(Filter filter, byte newPriority) throws Exception
Exception
boolean moveReference(long messageID, SimpleString toAddress) throws Exception
Exception
boolean moveReference(long messageID, SimpleString toAddress, boolean rejectDuplicates) throws Exception
Exception
int moveReferences(Filter filter, SimpleString toAddress) throws Exception
Exception
int moveReferences(Filter filter, SimpleString toAddress, boolean rejectDuplicates) throws Exception
Exception
void addRedistributor(long delay)
boolean hasMatchingConsumer(ServerMessage message)
Collection<Consumer> getConsumers()
boolean checkRedelivery(MessageReference ref, long timeBase) throws Exception
Exception
LinkedListIterator<MessageReference> iterator()
void setExpiryAddress(SimpleString expiryAddress)
void pause()
void resume()
boolean isPaused()
Executor getExecutor()
void resetAllIterators()
boolean flushExecutor()
boolean isDirectDeliver()
SimpleString getAddress()
boolean isInternalQueue()
void setInternalQueue(boolean internalQueue)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.