Package org.redisson.api
Class MapCacheOptions<K,V>
java.lang.Object
org.redisson.api.MapOptions<K,V>
org.redisson.api.MapCacheOptions<K,V>
- Type Parameters:
K- key typeV- value type
- Direct Known Subclasses:
LocalCachedMapCacheOptions
Deprecated.
Configuration for RMapCache object.
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from class org.redisson.api.MapOptions
MapOptions.WriteMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> MapCacheOptions <K, V> defaults()Deprecated.booleanDeprecated.Deprecated.SetsMapLoaderobject.loaderAsync(MapLoaderAsync<K, V> loaderAsync) Deprecated.SetsMapLoaderAsyncobject.Deprecated.Removes eviction task from memory if map is empty upon entries eviction process completion.writeBehindBatchSize(int writeBehindBatchSize) Deprecated.Sets write behind tasks batch size.writeBehindDelay(int writeBehindDelay) Deprecated.Sets write behind tasks execution delay.writeMode(MapOptions.WriteMode writeMode) Deprecated.Sets write mode.Deprecated.DefinesMapWriterobject which is invoked during write operation.writerAsync(MapWriterAsync<K, V> writer) Deprecated.DefinesMapWriterAsyncobject which is invoked during write operation.writerRetryAttempts(int writerRetryAttempts) Deprecated.Sets max retry attempts forRetryableMapWriterorRetryableMapWriterAsyncwriterRetryInterval(Duration writerRetryInterval) Deprecated.Sets retry interval forRetryableMapWriterorRetryableMapWriterAsyncMethods inherited from class org.redisson.api.MapOptions
getLoader, getLoaderAsync, getWriteBehindBatchSize, getWriteBehindDelay, getWriteMode, getWriter, getWriterAsync, getWriterRetryAttempts, getWriterRetryInterval
-
Constructor Details
-
MapCacheOptions
public MapCacheOptions()Deprecated.
-
-
Method Details
-
defaults
Deprecated. -
writer
Deprecated.Description copied from class:MapOptionsDefinesMapWriterobject which is invoked during write operation.- Overrides:
writerin classMapOptions<K,V> - Parameters:
writer- object- Returns:
- MapOptions instance
-
writerAsync
Deprecated.Description copied from class:MapOptionsDefinesMapWriterAsyncobject which is invoked during write operation.- Overrides:
writerAsyncin classMapOptions<K,V> - Parameters:
writer- object- Returns:
- MapOptions instance
-
writeBehindBatchSize
Deprecated.Description copied from class:MapOptionsSets write behind tasks batch size. All updates accumulated into a batch of specified size and written withMapWriter.Default is
50- Overrides:
writeBehindBatchSizein classMapOptions<K,V> - Parameters:
writeBehindBatchSize- - size of batch- Returns:
- MapOptions instance
-
writeBehindDelay
Deprecated.Description copied from class:MapOptionsSets write behind tasks execution delay. All updates written withMapWriterand lag not more than specified delay.Default is
1000milliseconds- Overrides:
writeBehindDelayin classMapOptions<K,V> - Parameters:
writeBehindDelay- - delay in milliseconds- Returns:
- MapOptions instance
-
writeMode
Deprecated.Description copied from class:MapOptionsSets write mode.Default is
MapOptions.WriteMode.WRITE_THROUGH- Overrides:
writeModein classMapOptions<K,V> - Parameters:
writeMode- - write mode- Returns:
- MapOptions instance
-
loader
Deprecated.Description copied from class:MapOptionsSetsMapLoaderobject.- Overrides:
loaderin classMapOptions<K,V> - Parameters:
loader- object- Returns:
- MapOptions instance
-
loaderAsync
Deprecated.Description copied from class:MapOptionsSetsMapLoaderAsyncobject.- Overrides:
loaderAsyncin classMapOptions<K,V> - Parameters:
loaderAsync- object- Returns:
- MapOptions instance
-
writerRetryAttempts
Deprecated.Description copied from class:MapOptionsSets max retry attempts forRetryableMapWriterorRetryableMapWriterAsync- Overrides:
writerRetryAttemptsin classMapOptions<K,V> - Parameters:
writerRetryAttempts- object- Returns:
- MapOptions instance
-
writerRetryInterval
Deprecated.Description copied from class:MapOptionsSets retry interval forRetryableMapWriterorRetryableMapWriterAsync- Overrides:
writerRetryIntervalin classMapOptions<K,V> - Parameters:
writerRetryInterval-Duration- Returns:
- MapOptions instance
-
isRemoveEmptyEvictionTask
public boolean isRemoveEmptyEvictionTask()Deprecated. -
removeEmptyEvictionTask
Deprecated.Removes eviction task from memory if map is empty upon entries eviction process completion.- Returns:
- MapOptions instance
-