Package org.redisson.api.options
Class PlainParams
java.lang.Object
org.redisson.api.options.PlainParams
- All Implemented Interfaces:
CodecOptions<PlainOptions,,Codec> InvocationOptions<PlainOptions>,ObjectParams,PlainOptions
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionDefines codec used for data stored in RedisgetCodec()getName()intintintretryAttempts(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, waitMethods inherited from interface org.redisson.api.options.CodecOptions
codecMethods inherited from interface org.redisson.api.options.InvocationOptions
retryAttempts, retryInterval, timeout
-
Method Details
-
getName
-
codec
Description copied from interface:CodecOptionsDefines codec used for data stored in Redis- Specified by:
codecin interfaceCodecOptions<T extends InvocationOptions<T>,C> - Parameters:
codec- applied to object instance- Returns:
- options object
-
timeout
Description copied from interface:InvocationOptionsDefines 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:
timeoutin interfaceInvocationOptions<T extends InvocationOptions<T>>- Parameters:
timeout- Redis server response timeout- Returns:
- options instance
-
retryAttempts
Description copied from interface:InvocationOptionsDefines command retry attempts. Error is thrown if the Redis command can't be sent to Redis server afterretryAttempts. But if it sent successfully thenresponseTimeoutis started.Default is the value specified for the same parameter in Redisson configuration
- Specified by:
retryAttemptsin interfaceInvocationOptions<T extends InvocationOptions<T>>- Parameters:
retryAttempts- command retry attempts- Returns:
- options instance
-
retryInterval
Description copied from interface:InvocationOptionsDefines time interval for another one attempt to send a Redis command if it hasn't already been sent.- Specified by:
retryIntervalin interfaceInvocationOptions<T extends InvocationOptions<T>>- Parameters:
interval- retry time interval- Returns:
- options instance
-
getTimeout
public int getTimeout()- Specified by:
getTimeoutin interfaceObjectParams
-
getRetryAttempts
public int getRetryAttempts()- Specified by:
getRetryAttemptsin interfaceObjectParams
-
getRetryInterval
public int getRetryInterval()- Specified by:
getRetryIntervalin interfaceObjectParams
-
getCodec
-