org.melati.poem.transaction
Interface TransactionPool

Package class diagram package TransactionPool
All Known Implementing Classes:
ContactsDatabase, ContactsDatabaseBase, Database, OdmgDatabase, OdmgDatabaseBase, PoemDatabase, PoemDatabaseBase

public interface TransactionPool

A pool of Transactions.


Method Summary
 int getFreeTransactionsCount()
           
 int getTransactionsCount()
           
 void setTransactionsMax(int tMax)
          Set the maximum number of transactions in this pool.
 Transaction transaction(int index)
          Get a Transaction by its index.
 int transactionsMax()
           
 

Method Detail

transactionsMax

int transactionsMax()
Returns:
the maximum number of Transactions we can store.

setTransactionsMax

void setTransactionsMax(int tMax)
Set the maximum number of transactions in this pool.

Parameters:
tMax - maximum number of transactions to set

transaction

Transaction transaction(int index)
Get a Transaction by its index.

Parameters:
index - the Transaction index to retrieve
Returns:
the found Transaction

getTransactionsCount

int getTransactionsCount()
Returns:
Returns the total number of transactions.

getFreeTransactionsCount

int getFreeTransactionsCount()
Returns:
the number of free transactions.


Copyright © 2000-2010 PanEris. All Rights Reserved.