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.retryDelay(DelayStrategy delayStrategy) Defines the delay strategy for a new attempt to send a command.retryInterval(Duration interval) Deprecated.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
Deprecated.UseretryDelay(DelayStrategy)instead.- Parameters:
interval- retry time interval- Returns:
- options instance
-
retryDelay
Defines the delay strategy for a new attempt to send a command.- Parameters:
delayStrategy- delay strategy implementation- Returns:
- options instance
-