public class TransactionalExceptionEvictionInterceptor extends DDAsyncInterceptor implements InternalExpirationManager.ExpirationConsumer<Object,Object>, Consumer<Iterable<InternalCacheEntry<Object,Object>>>
cacheConfiguration
Constructor and Description |
---|
TransactionalExceptionEvictionInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
accept(Iterable<InternalCacheEntry<Object,Object>> entries) |
void |
expired(Object key,
Object value,
Metadata metadata,
PrivateMetadata privateMetadata)
Invoked when an entry is expired.
|
long |
getCurrentSize() |
long |
getMaxSize() |
long |
getMinSize() |
void |
inject(Configuration config,
InternalDataContainer<Object,Object> dataContainer,
KeyValueMetadataSizeCalculator<Object,Object> calculator,
DistributionManager dm,
InternalExpirationManager<Object,Object> expirationManager) |
long |
pendingTransactionCount() |
void |
start() |
void |
stop() |
Object |
visitClearCommand(InvocationContext ctx,
ClearCommand command) |
Object |
visitCommitCommand(TxInvocationContext ctx,
CommitCommand command) |
Object |
visitInvalidateCommand(InvocationContext ctx,
InvalidateCommand command) |
Object |
visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command) |
Object |
visitRollbackCommand(TxInvocationContext ctx,
RollbackCommand command) |
handleDefault, visitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
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 TransactionalExceptionEvictionInterceptor()
public long getCurrentSize()
public long getMaxSize()
public long getMinSize()
public long pendingTransactionCount()
public void inject(Configuration config, InternalDataContainer<Object,Object> dataContainer, KeyValueMetadataSizeCalculator<Object,Object> calculator, DistributionManager dm, InternalExpirationManager<Object,Object> expirationManager)
public void start()
public void stop()
public void expired(Object key, Object value, Metadata metadata, PrivateMetadata privateMetadata)
InternalExpirationManager.ExpirationConsumer
expired
in interface InternalExpirationManager.ExpirationConsumer<Object,Object>
key
- The key.value
- The value.metadata
- The Metadata
.privateMetadata
- The PrivateMetadata
.public void accept(Iterable<InternalCacheEntry<Object,Object>> entries)
public Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
visitInvalidateCommand
in interface Visitor
visitInvalidateCommand
in class DDAsyncInterceptor
Throwable
public Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
visitClearCommand
in interface Visitor
visitClearCommand
in class DDAsyncInterceptor
Throwable
public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class DDAsyncInterceptor
Throwable
public Object visitRollbackCommand(TxInvocationContext ctx, RollbackCommand command) throws Throwable
visitRollbackCommand
in interface Visitor
visitRollbackCommand
in class DDAsyncInterceptor
Throwable
public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws Throwable
visitCommitCommand
in interface Visitor
visitCommitCommand
in class DDAsyncInterceptor
Throwable
Copyright © 2021 JBoss by Red Hat. All rights reserved.