Package org.redisson.api
Class MapOptions<K,V>
java.lang.Object
org.redisson.api.MapOptions<K,V>
- Type Parameters:
K
- key typeV
- value type
- Direct Known Subclasses:
LocalCachedMapOptions
,MapCacheOptions
Deprecated.
Use org.redisson.api.options.MapOptions instead
- Author:
- Nikita Koksharov
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Deprecated.protected
MapOptions
(MapOptions<K, V> copy) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> MapOptions <K, V> defaults()
Deprecated.Creates a new instance of MapOptions with default options.Deprecated.Deprecated.int
Deprecated.int
Deprecated.Deprecated.Deprecated.Deprecated.int
Deprecated.long
Deprecated.MapOptions
<K, V> Deprecated.SetsMapLoader
object.MapOptions
<K, V> loaderAsync
(MapLoaderAsync<K, V> loaderAsync) Deprecated.SetsMapLoaderAsync
object.MapOptions
<K, V> writeBehindBatchSize
(int writeBehindBatchSize) Deprecated.Sets write behind tasks batch size.MapOptions
<K, V> writeBehindDelay
(int writeBehindDelay) Deprecated.Sets write behind tasks execution delay.MapOptions
<K, V> writeMode
(MapOptions.WriteMode writeMode) Deprecated.Sets write mode.MapOptions
<K, V> Deprecated.DefinesMapWriter
object which is invoked during write operation.MapOptions
<K, V> writerAsync
(MapWriterAsync<K, V> writer) Deprecated.DefinesMapWriterAsync
object which is invoked during write operation.MapOptions
<K, V> writerRetryAttempts
(int writerRetryAttempts) Deprecated.Sets max retry attempts forRetryableMapWriter
orRetryableMapWriterAsync
MapOptions
<K, V> writerRetryInterval
(Duration writerRetryInterval) Deprecated.Sets retry interval forRetryableMapWriter
orRetryableMapWriterAsync
-
Constructor Details
-
MapOptions
protected MapOptions()Deprecated. -
MapOptions
Deprecated.
-
-
Method Details
-
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 typeV
- value type- Returns:
- MapOptions instance
-
writer
Deprecated.DefinesMapWriter
object which is invoked during write operation.- Parameters:
writer
- object- Returns:
- MapOptions instance
-
getWriter
Deprecated. -
writerAsync
Deprecated.DefinesMapWriterAsync
object which is invoked during write operation.- Parameters:
writer
- object- Returns:
- MapOptions instance
-
getWriterAsync
Deprecated. -
writeBehindBatchSize
Deprecated.Sets write behind tasks batch size. All updates accumulated into a batch of specified size and written withMapWriter
.Default is
50
- Parameters:
writeBehindBatchSize
- - size of batch- Returns:
- MapOptions instance
-
getWriteBehindBatchSize
public int getWriteBehindBatchSize()Deprecated. -
writeBehindDelay
Deprecated.Sets write behind tasks execution delay. All updates written withMapWriter
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
Deprecated.Sets write mode.Default is
MapOptions.WriteMode.WRITE_THROUGH
- Parameters:
writeMode
- - write mode- Returns:
- MapOptions instance
-
getWriteMode
Deprecated. -
getWriterRetryAttempts
public int getWriterRetryAttempts()Deprecated. -
writerRetryAttempts
Deprecated.Sets max retry attempts forRetryableMapWriter
orRetryableMapWriterAsync
- Parameters:
writerRetryAttempts
- object- Returns:
- MapOptions instance
-
getWriterRetryInterval
public long getWriterRetryInterval()Deprecated. -
writerRetryInterval
Deprecated.Sets retry interval forRetryableMapWriter
orRetryableMapWriterAsync
- Parameters:
writerRetryInterval
-Duration
- Returns:
- MapOptions instance
-
loader
Deprecated.SetsMapLoader
object.- Parameters:
loader
- object- Returns:
- MapOptions instance
-
getLoader
Deprecated. -
loaderAsync
Deprecated.SetsMapLoaderAsync
object.- Parameters:
loaderAsync
- object- Returns:
- MapOptions instance
-
getLoaderAsync
Deprecated.
-