Class TransactionSet


  • 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 Detail

      • TransactionSet

        public TransactionSet()
        Constructor
    • Method Detail

      • add

        public void add​(int handle,
                        String messageID,
                        int deliveryMode,
                        LocalQueue destination)
        Add an handle to the list
        Parameters:
        handle -
      • add

        public void add​(TransactionItem item)
        Add an handle to the list
        Parameters:
        item - the transaction item
      • removeUpdatesForQueue

        public void removeUpdatesForQueue​(String queueName)
        Remove all pending updates for the given queue
        Parameters:
        queueName - the queue name
      • size

        public int size()
        Get the list size
        Returns:
        the list size
      • clear

        public TransactionItem[] clear()
        Clear the set and return a snapshot of its content
      • updatedQueues

        public List<LocalQueue> updatedQueues()
        Compute a list of queues that were updated in this transaction set