Package com.github.fppt.jedismock.server
Class ServiceOptions
java.lang.Object
com.github.fppt.jedismock.server.ServiceOptions
Created by Xiaolu on 2015/4/22.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceOptionsstatic ServiceOptionsexecuteOnly(int n) A special type of interceptor which mocks only given number of command invocation and then breaks the connection.static ServiceOptionswithInterceptor(RedisCommandInterceptor commandInterceptor) Set interceptor which handles all the operations sent to JedisMock and can be used for overriding the standard behaviour.
-
Method Details
-
getCommandInterceptor
-
defaultOptions
-
executeOnly
A special type of interceptor which mocks only given number of command invocation and then breaks the connection.- Parameters:
n- a number of commands to execute before the connection break.
-
withInterceptor
Set interceptor which handles all the operations sent to JedisMock and can be used for overriding the standard behaviour.- Parameters:
commandInterceptor- - function which takes execution state, operation name and parameters and overrides behavior of RedisOperationExecutor.
-