Class MapOptions<K,V>

java.lang.Object
org.redisson.api.MapOptions<K,V>
Type Parameters:
K - key type
V - value type
Direct Known Subclasses:
LocalCachedMapOptions, MapCacheOptions

@Deprecated public class MapOptions<K,V> extends Object
Deprecated.
Use org.redisson.api.options.MapOptions instead
Author:
Nikita Koksharov
  • Constructor Details

    • MapOptions

      protected MapOptions()
      Deprecated.
    • MapOptions

      protected MapOptions(MapOptions<K,V> copy)
      Deprecated.
  • Method Details

    • defaults

      public static <K, V> MapOptions<K,V> defaults()
      Deprecated.
      Creates a new instance of MapOptions with default options.

      This is equivalent to:

           new MapOptions()
            .writer(null, null).loader(null);
       
      Type Parameters:
      K - key type
      V - value type
      Returns:
      MapOptions instance
    • writer

      public MapOptions<K,V> writer(MapWriter<K,V> writer)
      Deprecated.
      Defines MapWriter object which is invoked during write operation.
      Parameters:
      writer - object
      Returns:
      MapOptions instance
    • getWriter

      public MapWriter<K,V> getWriter()
      Deprecated.
    • writerAsync

      public MapOptions<K,V> writerAsync(MapWriterAsync<K,V> writer)
      Deprecated.
      Defines MapWriterAsync object which is invoked during write operation.
      Parameters:
      writer - object
      Returns:
      MapOptions instance
    • getWriterAsync

      public MapWriterAsync<K,V> getWriterAsync()
      Deprecated.
    • writeBehindBatchSize

      public MapOptions<K,V> writeBehindBatchSize(int writeBehindBatchSize)
      Deprecated.
      Sets write behind tasks batch size. All updates accumulated into a batch of specified size and written with MapWriter.

      Default is 50

      Parameters:
      writeBehindBatchSize - - size of batch
      Returns:
      MapOptions instance
    • getWriteBehindBatchSize

      public int getWriteBehindBatchSize()
      Deprecated.
    • writeBehindDelay

      public MapOptions<K,V> writeBehindDelay(int writeBehindDelay)
      Deprecated.
      Sets write behind tasks execution delay. All updates written with MapWriter and lag not more than specified delay.

      Default is 1000 milliseconds

      Parameters:
      writeBehindDelay - - delay in milliseconds
      Returns:
      MapOptions instance
    • getWriteBehindDelay

      public int getWriteBehindDelay()
      Deprecated.
    • writeMode

      public MapOptions<K,V> writeMode(MapOptions.WriteMode writeMode)
      Deprecated.
      Sets write mode.

      Default is MapOptions.WriteMode.WRITE_THROUGH

      Parameters:
      writeMode - - write mode
      Returns:
      MapOptions instance
    • getWriteMode

      public MapOptions.WriteMode getWriteMode()
      Deprecated.
    • getWriterRetryAttempts

      public int getWriterRetryAttempts()
      Deprecated.
    • writerRetryAttempts

      public MapOptions<K,V> writerRetryAttempts(int writerRetryAttempts)
      Deprecated.
      Sets max retry attempts for RetryableMapWriter or RetryableMapWriterAsync
      Parameters:
      writerRetryAttempts - object
      Returns:
      MapOptions instance
    • getWriterRetryInterval

      public long getWriterRetryInterval()
      Deprecated.
    • writerRetryInterval

      public MapOptions<K,V> writerRetryInterval(Duration writerRetryInterval)
      Deprecated.
      Sets retry interval for RetryableMapWriter or RetryableMapWriterAsync
      Parameters:
      writerRetryInterval - Duration
      Returns:
      MapOptions instance
    • loader

      public MapOptions<K,V> loader(MapLoader<K,V> loader)
      Deprecated.
      Sets MapLoader object.
      Parameters:
      loader - object
      Returns:
      MapOptions instance
    • getLoader

      public MapLoader<K,V> getLoader()
      Deprecated.
    • loaderAsync

      public MapOptions<K,V> loaderAsync(MapLoaderAsync<K,V> loaderAsync)
      Deprecated.
      Sets MapLoaderAsync object.
      Parameters:
      loaderAsync - object
      Returns:
      MapOptions instance
    • getLoaderAsync

      public MapLoaderAsync<K,V> getLoaderAsync()
      Deprecated.