public class DatabaseConnectionMap extends Object
Modifier and Type | Method and Description |
---|---|
void |
addTransactionListener(String transactionId,
DatabaseTransactionListener listener) |
static String |
createEntryKey(String connectionGroup,
String partitionID,
Database database) |
Database |
getDatabase(String connectionGroup,
String partitionID,
Database database) |
static DatabaseConnectionMap |
getInstance() |
Map<String,Database> |
getMap() |
String |
getNextTransactionId() |
List<DatabaseTransactionListener> |
getTransactionListeners(String transactionId) |
void |
removeConnection(String connectionGroup,
String partitionID,
Database database) |
void |
removeTransactionListener(String transactionId,
DatabaseTransactionListener listener) |
void |
removeTransactionListeners(String transactionId) |
void |
storeDatabase(String connectionGroup,
String partitionID,
Database database) |
public static final DatabaseConnectionMap getInstance()
public void storeDatabase(String connectionGroup, String partitionID, Database database)
public void removeConnection(String connectionGroup, String partitionID, Database database)
public Database getDatabase(String connectionGroup, String partitionID, Database database)
public static final String createEntryKey(String connectionGroup, String partitionID, Database database)
public String getNextTransactionId()
public void addTransactionListener(String transactionId, DatabaseTransactionListener listener)
public void removeTransactionListener(String transactionId, DatabaseTransactionListener listener)
public List<DatabaseTransactionListener> getTransactionListeners(String transactionId)
public void removeTransactionListeners(String transactionId)