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 Type
    Method
    Description
    retryAttempts(int retryAttempts)
    Defines command retry attempts.
    Defines time interval for another one attempt to send a Redis command if it hasn't already been sent.
    timeout(Duration timeout)
    Defines Redis server response timeout.
  • Method Details

    • timeout

      T timeout(Duration 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

      T retryAttempts(int retryAttempts)
      Defines command retry attempts. Error is thrown if the Redis command can't be sent to Redis server after retryAttempts. But if it sent successfully then responseTimeout is started.

      Default is the value specified for the same parameter in Redisson configuration

      Parameters:
      retryAttempts - command retry attempts
      Returns:
      options instance
    • retryInterval

      T retryInterval(Duration interval)
      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