public class StateTransferLockImpl extends Object implements StateTransferLock
NO_BLOCKING_CACHE_VIEW| Constructor and Description |
|---|
StateTransferLockImpl() |
public void injectDependencies(Configuration config)
public void releaseForCommand(InvocationContext ctx, WriteCommand command)
releaseForCommand in interface StateTransferLockpublic void releaseForCommand(TxInvocationContext ctx, PrepareCommand command)
releaseForCommand in interface StateTransferLockpublic void releaseForCommand(TxInvocationContext ctx, CommitCommand command)
releaseForCommand in interface StateTransferLockpublic void releaseForCommand(TxInvocationContext ctx, RollbackCommand command)
releaseForCommand in interface StateTransferLockpublic void releaseForCommand(TxInvocationContext ctx, LockControlCommand command)
releaseForCommand in interface StateTransferLockpublic boolean acquireForCommand(InvocationContext ctx, WriteCommand command) throws InterruptedException, TimeoutException
acquireForCommand in interface StateTransferLockInterruptedExceptionTimeoutExceptionpublic boolean acquireForCommand(TxInvocationContext ctx, PrepareCommand command) throws InterruptedException, TimeoutException
acquireForCommand in interface StateTransferLockInterruptedExceptionTimeoutExceptionpublic boolean acquireForCommand(TxInvocationContext ctx, CommitCommand command) throws InterruptedException, TimeoutException
acquireForCommand in interface StateTransferLockInterruptedExceptionTimeoutExceptionpublic boolean acquireForCommand(TxInvocationContext ctx, RollbackCommand command) throws InterruptedException, TimeoutException
acquireForCommand in interface StateTransferLockInterruptedExceptionTimeoutExceptionpublic boolean acquireForCommand(TxInvocationContext ctx, LockControlCommand command) throws TimeoutException, InterruptedException
acquireForCommand in interface StateTransferLockTimeoutExceptionInterruptedExceptionpublic void waitForStateTransferToEnd(InvocationContext ctx, VisitableCommand command, int newCacheViewId) throws TimeoutException, InterruptedException
StateTransferLockwaitForStateTransferToEnd in interface StateTransferLockTimeoutExceptionInterruptedExceptionpublic void blockNewTransactions(int cacheViewId)
throws InterruptedException
blockNewTransactions in interface StateTransferLockInterruptedExceptionpublic void blockNewTransactionsAsync()
blockNewTransactionsAsync in interface StateTransferLockpublic void unblockNewTransactions(int cacheViewId)
unblockNewTransactions in interface StateTransferLockpublic boolean areNewTransactionsBlocked()
areNewTransactionsBlocked in interface StateTransferLockpublic int getBlockingCacheViewId()
getBlockingCacheViewId in interface StateTransferLockCopyright © 2012 JBoss by Red Hat. All Rights Reserved.