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 StateTransferLock
public void releaseForCommand(TxInvocationContext ctx, PrepareCommand command)
releaseForCommand
in interface StateTransferLock
public void releaseForCommand(TxInvocationContext ctx, CommitCommand command)
releaseForCommand
in interface StateTransferLock
public void releaseForCommand(TxInvocationContext ctx, RollbackCommand command)
releaseForCommand
in interface StateTransferLock
public void releaseForCommand(TxInvocationContext ctx, LockControlCommand command)
releaseForCommand
in interface StateTransferLock
public boolean acquireForCommand(InvocationContext ctx, WriteCommand command) throws InterruptedException, TimeoutException
acquireForCommand
in interface StateTransferLock
InterruptedException
TimeoutException
public boolean acquireForCommand(TxInvocationContext ctx, PrepareCommand command) throws InterruptedException, TimeoutException
acquireForCommand
in interface StateTransferLock
InterruptedException
TimeoutException
public boolean acquireForCommand(TxInvocationContext ctx, CommitCommand command) throws InterruptedException, TimeoutException
acquireForCommand
in interface StateTransferLock
InterruptedException
TimeoutException
public boolean acquireForCommand(TxInvocationContext ctx, RollbackCommand command) throws InterruptedException, TimeoutException
acquireForCommand
in interface StateTransferLock
InterruptedException
TimeoutException
public boolean acquireForCommand(TxInvocationContext ctx, LockControlCommand command) throws TimeoutException, InterruptedException
acquireForCommand
in interface StateTransferLock
TimeoutException
InterruptedException
public void waitForStateTransferToEnd(InvocationContext ctx, VisitableCommand command, int newCacheViewId) throws TimeoutException, InterruptedException
StateTransferLock
waitForStateTransferToEnd
in interface StateTransferLock
TimeoutException
InterruptedException
public void blockNewTransactions(int cacheViewId) throws InterruptedException
blockNewTransactions
in interface StateTransferLock
InterruptedException
public void blockNewTransactionsAsync()
blockNewTransactionsAsync
in interface StateTransferLock
public void unblockNewTransactions(int cacheViewId)
unblockNewTransactions
in interface StateTransferLock
public boolean areNewTransactionsBlocked()
areNewTransactionsBlocked
in interface StateTransferLock
public int getBlockingCacheViewId()
getBlockingCacheViewId
in interface StateTransferLock
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.