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
,java.util.EventListener
public class QueueSender extends QueueTransactionHandler
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:
QueueManager.createQueueSender(java.lang.String, com.swiftmq.swiftlet.auth.ActiveLogin)
-
-
Constructor Summary
Constructors Constructor Description QueueSender(ActiveQueue activeQueue, EntityList senderEntityList)
Creates a new QueueSender
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the queue senderQueuePushTransaction
createTransaction()
Creates a new QueuePushTransaction.long
getFlowControlDelay()
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 Detail
-
QueueSender
public QueueSender(ActiveQueue activeQueue, EntityList senderEntityList)
Creates a new QueueSender- Parameters:
activeQueue
- the queue
-
-
Method Detail
-
createTransaction
public QueuePushTransaction createTransaction() throws QueueException, QueueHandlerClosedException
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
public void close() throws QueueException, QueueHandlerClosedException
Close the queue sender- Overrides:
close
in classQueueTransactionHandler
- Throws:
QueueException
- throws by the queueQueueHandlerClosedException
- if the browser is already closed
-
-