Package org.redisson.api.options
Interface InvocationOptions<T extends InvocationOptions<T>>
- All Known Subinterfaces:
CodecOptions<T,,C> CommonOptions,ExecutorOptions,ExMapOptions<T,,K, V> JsonBucketOptions<V>,KeysOptions,LiveObjectOptions,LocalCachedMapOptions<K,,V> MapCacheOptions<K,,V> MapOptions<K,,V> OptionalOptions,PatternTopicOptions,PlainOptions
- All Known Implementing Classes:
CommonParams,ExecutorParams,JsonBucketParams,KeysParams,LiveObjectParams,LocalCachedMapParams,MapCacheParams,MapParams,OptionalParams,PatternTopicParams,PlainParams
public interface InvocationOptions<T extends InvocationOptions<T>>
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionretryAttempts(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.
-
Method Details
-
timeout
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
- Parameters:
timeout- Redis server response timeout- Returns:
- options instance
-
retryAttempts
Defines 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
- Parameters:
retryAttempts- command retry attempts- Returns:
- options instance
-
retryInterval
Defines time interval for another one attempt to send a Redis command if it hasn't already been sent.- Parameters:
interval- retry time interval- Returns:
- options instance
-