Package com.swiftmq.swiftlet.queue
Class QueueSender
java.lang.Object
com.swiftmq.swiftlet.queue.event.QueueManagerAdapter
com.swiftmq.swiftlet.queue.QueueHandler
com.swiftmq.swiftlet.queue.QueueTransactionHandler
com.swiftmq.swiftlet.queue.QueueSender
- All Implemented Interfaces:
QueueManagerListener
,EventListener
A QueueSender is a QueueTransactionHandler that serves as a factory
for QueuePushTransactions. Pushing messages into the underlying queue
goes via QueuePushTransactions. QueueSenders are created by the
QueueManager.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionQueueSender
(ActiveQueue activeQueue, EntityList senderEntityList) Creates a new QueueSender -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the queue senderCreates a new QueuePushTransaction.long
Returns the flow control delay, computed after the transaction has been committed.Methods inherited from class com.swiftmq.swiftlet.queue.QueueHandler
getNumberQueueMessages, getQueueName, isClosed, queueStopInitiated, verifyQueueHandlerState
Methods inherited from class com.swiftmq.swiftlet.queue.event.QueueManagerAdapter
queueStarted, queueStartInitiated, queueStopped
-
Constructor Details
-
QueueSender
Creates a new QueueSender- Parameters:
activeQueue
- the queue
-
-
Method Details
-
createTransaction
Creates a new QueuePushTransaction.- Returns:
- QueuePushTransaction
- Throws:
QueueException
- thrown by the queueQueueHandlerClosedException
- if the handler is closed
-
getFlowControlDelay
public long getFlowControlDelay()Returns the flow control delay, computed after the transaction has been committed.- Returns:
- flow control delay.
-
close
Close the queue sender- Overrides:
close
in classQueueTransactionHandler
- Throws:
QueueException
- throws by the queueQueueHandlerClosedException
- if the browser is already closed
-