public class BaseCustomAsyncInterceptor extends DDAsyncInterceptor
AsyncInterceptorChain.addInterceptor(AsyncInterceptor, int) method (or any of its
overloaded forms) or registering custom interceptors via XML should extend this base class when creating their own
custom interceptors.
Annotations on custom interceptors, including Inject, Start and Stop
will not be respected and callbacks will not be made.
Instead, custom interceptor authors should extend this base class to gain access to Cache and EmbeddedCacheManager,
from which other components may be accessed. Further, lifecycle should be implemented by overriding start()
and stop() as defined in this class.
| Modifier and Type | Field and Description |
|---|---|
protected Cache<?,?> |
cache |
protected EmbeddedCacheManager |
embeddedCacheManager |
cacheConfiguration| Constructor and Description |
|---|
BaseCustomAsyncInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
start() |
protected void |
stop() |
handleDefault, visitClearCommand, visitCommand, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandasyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedNull, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitRemoveExpiredCommandprotected EmbeddedCacheManager embeddedCacheManager
protected Cache<?,?> cache
Copyright © 2022 JBoss by Red Hat. All rights reserved.