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
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.protectedMapOptions(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.intDeprecated.intDeprecated.Deprecated.Deprecated.Deprecated.intDeprecated.longDeprecated.MapOptions<K, V> Deprecated.SetsMapLoaderobject.MapOptions<K, V> loaderAsync(MapLoaderAsync<K, V> loaderAsync) Deprecated.SetsMapLoaderAsyncobject.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.DefinesMapWriterobject which is invoked during write operation.MapOptions<K, V> writerAsync(MapWriterAsync<K, V> writer) Deprecated.DefinesMapWriterAsyncobject which is invoked during write operation.MapOptions<K, V> writerRetryAttempts(int writerRetryAttempts) Deprecated.Sets max retry attempts forRetryableMapWriterorRetryableMapWriterAsyncMapOptions<K, V> writerRetryInterval(Duration writerRetryInterval) Deprecated.Sets retry interval forRetryableMapWriterorRetryableMapWriterAsync
-
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.DefinesMapWriterobject which is invoked during write operation.- Parameters:
writer- object- Returns:
- MapOptions instance
-
getWriter
Deprecated. -
writerAsync
Deprecated.DefinesMapWriterAsyncobject 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 withMapWriterand lag not more than specified delay.Default is
1000milliseconds- 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 forRetryableMapWriterorRetryableMapWriterAsync- Parameters:
writerRetryAttempts- object- Returns:
- MapOptions instance
-
getWriterRetryInterval
public long getWriterRetryInterval()Deprecated. -
writerRetryInterval
Deprecated.Sets retry interval forRetryableMapWriterorRetryableMapWriterAsync- Parameters:
writerRetryInterval-Duration- Returns:
- MapOptions instance
-
loader
Deprecated.SetsMapLoaderobject.- Parameters:
loader- object- Returns:
- MapOptions instance
-
getLoader
Deprecated. -
loaderAsync
Deprecated.SetsMapLoaderAsyncobject.- Parameters:
loaderAsync- object- Returns:
- MapOptions instance
-
getLoaderAsync
Deprecated.
-