public class MockExecutor extends Object
| Constructor and Description |
|---|
MockExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static Slice |
breakConnection(OperationExecutorState state)
Break the connection (imitate Redis shutdown).
|
static Slice |
proceed(OperationExecutorState state,
String name,
List<Slice> commandParams)
Proceed with execution, mocking the Redis behaviour.
|
public static Slice proceed(OperationExecutorState state, String name, List<Slice> commandParams)
state - Executor state, holding the shared database and connection-specific state.name - Command name.commandParams - Command parameters.public static Slice breakConnection(OperationExecutorState state)
state - state Executor stateCopyright © 2023. All rights reserved.