Class MockExecutor

java.lang.Object
com.github.fppt.jedismock.operations.server.MockExecutor

public class MockExecutor extends Object
  • Constructor Details

    • MockExecutor

      public MockExecutor()
  • Method Details

    • proceed

      public static Slice proceed(OperationExecutorState state, String name, List<Slice> commandParams)
      Proceed with execution, mocking the Redis behaviour.
      Parameters:
      state - Executor state, holding the shared database and connection-specific state.
      name - Command name.
      commandParams - Command parameters.
    • breakConnection

      public static Slice breakConnection(OperationExecutorState state)
      Break the connection (imitate Redis shutdown).
      Parameters:
      state - state Executor state