Package org.redisson.api.options
Class KeysParams
java.lang.Object
org.redisson.api.options.KeysParams
- All Implemented Interfaces:
CodecOptions<KeysOptions,
,Codec> InvocationOptions<KeysOptions>
,KeysOptions
,ObjectParams
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionDefines codec used for data stored in RedisgetCodec()
int
int
int
retryAttempts
(int retryAttempts) Defines command retry attempts.retryInterval
(Duration interval) Defines time interval for another one attempt to send a Redis command if it hasn't already been sent.Defines Redis server response timeout.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.redisson.api.options.InvocationOptions
retryAttempts, retryInterval, timeout
-
Method Details
-
codec
Description copied from interface:CodecOptions
Defines codec used for data stored in Redis- Specified by:
codec
in interfaceCodecOptions<T extends InvocationOptions<T>,
C> - Parameters:
codec
- applied to object instance- Returns:
- options object
-
timeout
Description copied from interface:InvocationOptions
Defines Redis server response timeout. Starts to countdown when a Redis command was successfully sent.Default is the value specified for the same parameter in Redisson configuration
- Specified by:
timeout
in interfaceInvocationOptions<T extends InvocationOptions<T>>
- Parameters:
timeout
- Redis server response timeout- Returns:
- options instance
-
retryAttempts
Description copied from interface:InvocationOptions
Defines command retry attempts. Error is thrown if the Redis command can't be sent to Redis server afterretryAttempts
. But if it sent successfully thenresponseTimeout
is started.Default is the value specified for the same parameter in Redisson configuration
- Specified by:
retryAttempts
in interfaceInvocationOptions<T extends InvocationOptions<T>>
- Parameters:
retryAttempts
- command retry attempts- Returns:
- options instance
-
retryInterval
Description copied from interface:InvocationOptions
Defines time interval for another one attempt to send a Redis command if it hasn't already been sent.- Specified by:
retryInterval
in interfaceInvocationOptions<T extends InvocationOptions<T>>
- Parameters:
interval
- retry time interval- Returns:
- options instance
-
getTimeout
public int getTimeout()- Specified by:
getTimeout
in interfaceObjectParams
-
getRetryAttempts
public int getRetryAttempts()- Specified by:
getRetryAttempts
in interfaceObjectParams
-
getRetryInterval
public int getRetryInterval()- Specified by:
getRetryInterval
in interfaceObjectParams
-
getCodec
-