Class PlainParams

java.lang.Object
org.redisson.api.options.PlainParams
All Implemented Interfaces:
CodecOptions<PlainOptions,Codec>, InvocationOptions<PlainOptions>, ObjectParams, PlainOptions

public final class PlainParams extends Object implements PlainOptions
Author:
Nikita Koksharov
  • Method Details

    • getName

      public String getName()
    • codec

      public PlainOptions codec(Codec codec)
      Description copied from interface: CodecOptions
      Defines codec used for data stored in Redis
      Specified by:
      codec in interface CodecOptions<T extends InvocationOptions<T>,C>
      Parameters:
      codec - applied to object instance
      Returns:
      options object
    • timeout

      public PlainOptions timeout(Duration timeout)
      Description copied from interface: InvocationOptions
      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

      Specified by:
      timeout in interface InvocationOptions<T extends InvocationOptions<T>>
      Parameters:
      timeout - Redis server response timeout
      Returns:
      options instance
    • retryAttempts

      public PlainOptions retryAttempts(int retryAttempts)
      Description copied from interface: InvocationOptions
      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

      Specified by:
      retryAttempts in interface InvocationOptions<T extends InvocationOptions<T>>
      Parameters:
      retryAttempts - command retry attempts
      Returns:
      options instance
    • retryInterval

      public PlainOptions retryInterval(Duration interval)
      Description copied from interface: InvocationOptions
      Defines time interval for another one attempt to send a Redis command if it hasn't already been sent.
      Specified by:
      retryInterval in interface InvocationOptions<T extends InvocationOptions<T>>
      Parameters:
      interval - retry time interval
      Returns:
      options instance
    • getTimeout

      public int getTimeout()
      Specified by:
      getTimeout in interface ObjectParams
    • getRetryAttempts

      public int getRetryAttempts()
      Specified by:
      getRetryAttempts in interface ObjectParams
    • getRetryInterval

      public int getRetryInterval()
      Specified by:
      getRetryInterval in interface ObjectParams
    • getCodec

      public Codec getCodec()