java.lang.Object
com.inductiveautomation.ignition.gateway.storeforward.transaction.BasicTransactionSet<T>
Type Parameters:
T - the type of PersistentData stored in this transaction set
All Implemented Interfaces:
TransactionSet<T>

public class BasicTransactionSet<T extends PersistentData> extends Object implements TransactionSet<T>
A basic implementation of the TransactionSet interface. This class provides a simple way to store and manage transactions.
  • Constructor Details

    • BasicTransactionSet

      public BasicTransactionSet()
  • Method Details

    • getTransactions

      public List<ForwardTransaction<T>> getTransactions()
      Returns the list of transactions stored in this transaction set.
      Specified by:
      getTransactions in interface TransactionSet<T extends PersistentData>
      Returns:
      a list of ForwardTransaction objects
    • getDataCount

      public int getDataCount()
      Returns the number of data entries in all transactions in this set.
      Specified by:
      getDataCount in interface TransactionSet<T extends PersistentData>
      Returns:
      an integer representing the total count of data entries
    • addTransaction

      public void addTransaction(ForwardTransaction<T> transaction)
      Adds a new transaction to this set.
      Parameters:
      transaction - the transaction to add
    • addTransactions

      public void addTransactions(@Nonnull Collection<? extends ForwardTransaction<T>> transactions)
      Adds a collection of new transactions to this set.
      Parameters:
      transactions - the collection of transactions to add