public abstract class BaseStateTransferInterceptor extends DDAsyncInterceptor
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseStateTransferInterceptor.LostDataVisitor |
Modifier and Type | Field and Description |
---|---|
protected StateTransferLock |
stateTransferLock |
cacheConfiguration
Constructor and Description |
---|
BaseStateTransferInterceptor() |
handleDefault, visitClearCommand, visitCommand, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitEntrySetCommand, visitEvictCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, 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
protected StateTransferLock stateTransferLock
public void start()
public Object visitGetKeysInGroupCommand(InvocationContext ctx, GetKeysInGroupCommand command) throws Throwable
visitGetKeysInGroupCommand
in interface Visitor
visitGetKeysInGroupCommand
in class DDAsyncInterceptor
Throwable
protected final void logRetry(int currentTopologyId, TopologyAffectedCommand cmd)
protected final int currentTopologyId()
protected final void updateTopologyId(TopologyAffectedCommand command)
protected <T extends VisitableCommand> Object retryWhenDone(CompletableFuture<Void> future, int topologyId, InvocationContext ctx, T command, InvocationFinallyFunction<T> callback)
public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class DDAsyncInterceptor
Throwable
public 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
protected <C extends VisitableCommand & TopologyAffectedCommand & FlagAffectedCommand> Object handleReadCommand(InvocationContext ctx, C command)
protected int getNewTopologyId(Throwable ce, int currentTopologyId, TopologyAffectedCommand command)
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
protected abstract Log getLog()
Copyright © 2021 JBoss by Red Hat. All rights reserved.