public class ServiceOptions extends Object
| Modifier and Type | Method and Description |
|---|---|
static ServiceOptions |
defaultOptions() |
static ServiceOptions |
executeOnly(int n)
A special type of interceptor which mocks only given number of command invocation and then breaks the connection.
|
RedisCommandInterceptor |
getCommandInterceptor() |
static ServiceOptions |
withInterceptor(RedisCommandInterceptor commandInterceptor)
Set interceptor which handles all the operations sent to JedisMock and can be used for
overriding the standard behaviour.
|
public RedisCommandInterceptor getCommandInterceptor()
public static ServiceOptions defaultOptions()
public static ServiceOptions executeOnly(int n)
n - a number of commands to execute before the connection break.public static ServiceOptions withInterceptor(RedisCommandInterceptor commandInterceptor)
commandInterceptor - - function which takes execution state, operation name and parameters
and overrides behavior of RedisOperationExecutor.Copyright © 2023. All rights reserved.