Class BasicTransactionSet<T extends PersistentData>
java.lang.Object
com.inductiveautomation.ignition.gateway.storeforward.transaction.BasicTransactionSet<T>
- Type Parameters:
T
- the type ofPersistentData
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTransaction
(ForwardTransaction<T> transaction) Adds a new transaction to this set.void
addTransactions
(Collection<? extends ForwardTransaction<T>> transactions) Adds a collection of new transactions to this set.int
Returns the number of data entries in all transactions in this set.Returns the list of transactions stored in this transaction set.
-
Constructor Details
-
BasicTransactionSet
public BasicTransactionSet()
-
-
Method Details
-
getTransactions
Returns the list of transactions stored in this transaction set.- Specified by:
getTransactions
in interfaceTransactionSet<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 interfaceTransactionSet<T extends PersistentData>
- Returns:
- an integer representing the total count of data entries
-
addTransaction
Adds a new transaction to this set.- Parameters:
transaction
- the transaction to add
-
addTransactions
Adds a collection of new transactions to this set.- Parameters:
transactions
- the collection of transactions to add
-