public class HBConnectionHolder
extends java.lang.Object
Session
and current transaction. Instance of this class is used to store connection information in RPCManager
while handling Automatic Transactions.Modifier and Type | Method and Description |
---|---|
int | getOpCount() Returns count of operations executed. |
Session | getSession() Returns Session for this connection. |
Transaction | getTransaction() Returns current open transaction. |
void | increaseOpCount() Increases operations count by 1. |
void | setSession(Session em) Sets new Session . |
void | setTransaction(Transaction tx) Sets new transaction. |
public Session getSession()
Session
for this connection.Session
for this connection.public void setSession(Session em)
Session
.em
- Session
new session.public Transaction getTransaction()
Transaction
current transaction.public void setTransaction(Transaction tx)
tx
- Transaction
new transaction.public int getOpCount()
int
executed operations count.public void increaseOpCount()