@MBean(objectName="Transactions", description="Component that manages the cache\'s participation in JTA transactions.") public class TxInterceptor<K,V> extends DDAsyncInterceptor implements JmxStatisticsExposer
TransactionXaAdapter
cacheConfiguration
Constructor and Description |
---|
TxInterceptor() |
handleDefault, visitCommand, visitEvictCommand, visitGetKeysInGroupCommand, visitInvalidateL1Command, visitUnknownCommand
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitRemoveExpiredCommand
public void start()
public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class DDAsyncInterceptor
Throwable
public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws Throwable
visitCommitCommand
in interface Visitor
visitCommitCommand
in class DDAsyncInterceptor
Throwable
public Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) throws Throwable
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class DDAsyncInterceptor
Throwable
public Object visitLockControlCommand(TxInvocationContext ctx, LockControlCommand command) throws Throwable
visitLockControlCommand
in interface Visitor
visitLockControlCommand
in class DDAsyncInterceptor
Throwable
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class DDAsyncInterceptor
Throwable
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand
in interface Visitor
visitRemoveCommand
in class DDAsyncInterceptor
Throwable
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface Visitor
visitReplaceCommand
in class DDAsyncInterceptor
Throwable
public Object visitComputeCommand(InvocationContext ctx, ComputeCommand command) throws Throwable
visitComputeCommand
in interface Visitor
visitComputeCommand
in class DDAsyncInterceptor
Throwable
public Object visitComputeIfAbsentCommand(InvocationContext ctx, ComputeIfAbsentCommand command) throws Throwable
visitComputeIfAbsentCommand
in interface Visitor
visitComputeIfAbsentCommand
in class DDAsyncInterceptor
Throwable
public Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
visitClearCommand
in interface Visitor
visitClearCommand
in class DDAsyncInterceptor
Throwable
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand
in interface Visitor
visitPutMapCommand
in class DDAsyncInterceptor
Throwable
public Object visitSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
visitSizeCommand
in interface Visitor
visitSizeCommand
in class DDAsyncInterceptor
Throwable
public Object visitKeySetCommand(InvocationContext ctx, KeySetCommand command) throws Throwable
visitKeySetCommand
in interface Visitor
visitKeySetCommand
in class DDAsyncInterceptor
Throwable
public Object visitEntrySetCommand(InvocationContext ctx, EntrySetCommand command) throws Throwable
visitEntrySetCommand
in interface Visitor
visitEntrySetCommand
in class DDAsyncInterceptor
Throwable
public Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand invalidateCommand) throws Throwable
visitInvalidateCommand
in interface Visitor
visitInvalidateCommand
in class DDAsyncInterceptor
Throwable
public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class DDAsyncInterceptor
Throwable
public final Object visitGetCacheEntryCommand(InvocationContext ctx, GetCacheEntryCommand command) throws Throwable
visitGetCacheEntryCommand
in interface Visitor
visitGetCacheEntryCommand
in class DDAsyncInterceptor
Throwable
public Object visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable
visitGetAllCommand
in interface Visitor
visitGetAllCommand
in class DDAsyncInterceptor
Throwable
public Object visitReadOnlyKeyCommand(InvocationContext ctx, ReadOnlyKeyCommand command) throws Throwable
visitReadOnlyKeyCommand
in interface Visitor
visitReadOnlyKeyCommand
in class DDAsyncInterceptor
Throwable
public Object visitReadOnlyManyCommand(InvocationContext ctx, ReadOnlyManyCommand command) throws Throwable
visitReadOnlyManyCommand
in interface Visitor
visitReadOnlyManyCommand
in class DDAsyncInterceptor
Throwable
public Object visitWriteOnlyKeyCommand(InvocationContext ctx, WriteOnlyKeyCommand command) throws Throwable
visitWriteOnlyKeyCommand
in interface Visitor
visitWriteOnlyKeyCommand
in class DDAsyncInterceptor
Throwable
public Object visitReadWriteKeyValueCommand(InvocationContext ctx, ReadWriteKeyValueCommand command) throws Throwable
visitReadWriteKeyValueCommand
in interface Visitor
visitReadWriteKeyValueCommand
in class DDAsyncInterceptor
Throwable
public Object visitReadWriteKeyCommand(InvocationContext ctx, ReadWriteKeyCommand command) throws Throwable
visitReadWriteKeyCommand
in interface Visitor
visitReadWriteKeyCommand
in class DDAsyncInterceptor
Throwable
public Object visitWriteOnlyManyEntriesCommand(InvocationContext ctx, WriteOnlyManyEntriesCommand command) throws Throwable
visitWriteOnlyManyEntriesCommand
in interface Visitor
visitWriteOnlyManyEntriesCommand
in class DDAsyncInterceptor
Throwable
public Object visitWriteOnlyKeyValueCommand(InvocationContext ctx, WriteOnlyKeyValueCommand command) throws Throwable
visitWriteOnlyKeyValueCommand
in interface Visitor
visitWriteOnlyKeyValueCommand
in class DDAsyncInterceptor
Throwable
public Object visitWriteOnlyManyCommand(InvocationContext ctx, WriteOnlyManyCommand command) throws Throwable
visitWriteOnlyManyCommand
in interface Visitor
visitWriteOnlyManyCommand
in class DDAsyncInterceptor
Throwable
public Object visitReadWriteManyCommand(InvocationContext ctx, ReadWriteManyCommand command) throws Throwable
visitReadWriteManyCommand
in interface Visitor
visitReadWriteManyCommand
in class DDAsyncInterceptor
Throwable
public Object visitReadWriteManyEntriesCommand(InvocationContext ctx, ReadWriteManyEntriesCommand command) throws Throwable
visitReadWriteManyEntriesCommand
in interface Visitor
visitReadWriteManyEntriesCommand
in class DDAsyncInterceptor
Throwable
public LocalTransaction enlist(TxInvocationContext ctx) throws SystemException
SystemException
public boolean getStatisticsEnabled()
JmxStatisticsExposer
getStatisticsEnabled
in interface JmxStatisticsExposer
public void setStatisticsEnabled(boolean enabled)
JmxStatisticsExposer
setStatisticsEnabled
in interface JmxStatisticsExposer
enabled
- true if statistics should be captured@ManagedOperation(description="Resets statistics gathered by this component", displayName="Reset Statistics") public void resetStatistics()
JmxStatisticsExposer
resetStatistics
in interface JmxStatisticsExposer
@ManagedAttribute(displayName="Statistics enabled", dataType=TRAIT, writable=true) public boolean isStatisticsEnabled()
@ManagedAttribute(description="Number of transaction prepares performed since last reset", displayName="Prepares", measurementType=TRENDSUP) public long getPrepares()
@ManagedAttribute(description="Number of transaction commits performed since last reset", displayName="Commits", measurementType=TRENDSUP) public long getCommits()
@ManagedAttribute(description="Number of transaction rollbacks performed since last reset", displayName="Rollbacks", measurementType=TRENDSUP) public long getRollbacks()
Copyright © 2021 JBoss by Red Hat. All rights reserved.