Package org.redisson.api.options
Class ExecutorParams
java.lang.Object
org.redisson.api.options.ExecutorParams
- All Implemented Interfaces:
CodecOptions<ExecutorOptions,,Codec> ExecutorOptions,InvocationOptions<ExecutorOptions>,ObjectParams
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionDefines codec used for data stored in RedisgetCodec()getName()intintintintidGenerator(IdGenerator idGenerator) Defines identifier generatorretryAttempts(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.taskRetryInterval(Duration interval) Defines task retry interval at the end of which task is executed again by ExecutorService worker.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
-
taskRetryInterval
Description copied from interface:ExecutorOptionsDefines task retry interval at the end of which task is executed again by ExecutorService worker.Counted from the task start moment. Applied only if the task was in progress but for some reason wasn't marked as completed (successful or unsuccessful).
Set
0to disable.Default is
5 minutes- Specified by:
taskRetryIntervalin interfaceExecutorOptions- Parameters:
interval- value- Returns:
- options instance
-
idGenerator
Description copied from interface:ExecutorOptionsDefines identifier generator- Specified by:
idGeneratorin interfaceExecutorOptions- Parameters:
idGenerator- identifier generator- Returns:
- options instance
-
getName
-
getTaskRetryInterval
public int getTaskRetryInterval() -
getIdGenerator
-
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
-