|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.distribution.TransactionLoggerImpl
public class TransactionLoggerImpl
// TODO: Manik: Document this
Constructor Summary | |
---|---|
TransactionLoggerImpl()
|
Method Summary | |
---|---|
List<WriteCommand> |
drain()
Drains the transaction log and returns a list of what has been drained. |
List<WriteCommand> |
drainAndLock()
Similar to TransactionLogger.drain() except that relevant locks are acquired so that no more commands are added to the
transaction log during this process, and transaction logging is disabled after draining. |
void |
enable()
|
boolean |
isEnabled()
|
boolean |
logIfNeeded(Collection<WriteCommand> commands)
If logging is enabled, will log the commands and return true. |
void |
logIfNeeded(CommitCommand command)
|
void |
logIfNeeded(PrepareCommand command)
|
void |
logIfNeeded(RollbackCommand command)
|
boolean |
logIfNeeded(WriteCommand command)
If logging is enabled, will log the command and return true. |
int |
size()
|
void |
unlockAndDisable()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionLoggerImpl()
Method Detail |
---|
public void enable()
enable
in interface TransactionLogger
public List<WriteCommand> drain()
TransactionLogger
drain
in interface TransactionLogger
public List<WriteCommand> drainAndLock()
TransactionLogger
TransactionLogger.drain()
except that relevant locks are acquired so that no more commands are added to the
transaction log during this process, and transaction logging is disabled after draining.
drainAndLock
in interface TransactionLogger
public void unlockAndDisable()
unlockAndDisable
in interface TransactionLogger
public boolean logIfNeeded(WriteCommand command)
TransactionLogger
logIfNeeded
in interface TransactionLogger
command
- command to log
public void logIfNeeded(PrepareCommand command)
logIfNeeded
in interface TransactionLogger
public void logIfNeeded(CommitCommand command)
logIfNeeded
in interface TransactionLogger
public void logIfNeeded(RollbackCommand command)
logIfNeeded
in interface TransactionLogger
public boolean logIfNeeded(Collection<WriteCommand> commands)
TransactionLogger
logIfNeeded
in interface TransactionLogger
commands
- commands to log
public int size()
size
in interface TransactionLogger
public boolean isEnabled()
isEnabled
in interface TransactionLogger
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |