public final class TransactionSet extends Object
Set of TransactionItem objects.
Used by the JMS Session implementation to keep track of the changes made in the current transaction.
May be fully or partially cleared on commit/rollback operations.
Thread-safe implementation.
| Constructor and Description |
|---|
TransactionSet()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int handle,
String messageID,
int deliveryMode,
LocalQueue destination)
Add an handle to the list
|
void |
add(TransactionItem item)
Add an handle to the list
|
TransactionItem[] |
clear()
Clear the set and return a snapshot of its content
|
TransactionItem[] |
clear(List<String> deliveredMessageIDs)
Clear items by IDs from the transaction set and return a snapshot of the items
|
void |
removeUpdatesForQueue(String queueName)
Remove all pending updates for the given queue
|
int |
size()
Get the list size
|
List<LocalQueue> |
updatedQueues()
Compute a list of queues that were updated in this transaction set
|
List<LocalQueue> |
updatedQueues(List<String> deliveredMessageIDs)
Compute a list of queues that were updated in this transaction set
|
public void add(int handle,
String messageID,
int deliveryMode,
LocalQueue destination)
handle - public void add(TransactionItem item)
item - the transaction itempublic void removeUpdatesForQueue(String queueName)
queueName - the queue namepublic int size()
public TransactionItem[] clear(List<String> deliveredMessageIDs) throws FFMQException
FFMQExceptionpublic TransactionItem[] clear()
public List<LocalQueue> updatedQueues()
public List<LocalQueue> updatedQueues(List<String> deliveredMessageIDs) throws FFMQException
FFMQExceptionCopyright © 2019. All rights reserved.