public abstract class LocalCacheListener extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DISABLED_ACK_SUFFIX |
static String |
DISABLED_KEYS_SUFFIX |
static String |
TOPIC_SUFFIX |
Constructor and Description |
---|
LocalCacheListener(String name,
CommandAsyncExecutor commandExecutor,
RObject object,
Codec codec,
LocalCachedMapOptions<?,?> options,
long cacheUpdateLogTime) |
Modifier and Type | Method and Description |
---|---|
void |
add(Map<?,?> cache) |
RFuture<Void> |
clearLocalCacheAsync() |
ConcurrentMap<CacheKey,CacheValue> |
createCache(LocalCachedMapOptions<?,?> options) |
byte[] |
generateId() |
byte[] |
getInstanceId() |
RTopic |
getInvalidationTopic() |
String |
getInvalidationTopicName() |
String |
getUpdatesLogName() |
boolean |
isDisabled(Object key) |
void |
remove() |
protected abstract void |
updateCache(io.netty.buffer.ByteBuf keyBuf,
io.netty.buffer.ByteBuf valueBuf) |
public static final String TOPIC_SUFFIX
public static final String DISABLED_KEYS_SUFFIX
public static final String DISABLED_ACK_SUFFIX
public LocalCacheListener(String name, CommandAsyncExecutor commandExecutor, RObject object, Codec codec, LocalCachedMapOptions<?,?> options, long cacheUpdateLogTime)
public byte[] generateId()
public byte[] getInstanceId()
public ConcurrentMap<CacheKey,CacheValue> createCache(LocalCachedMapOptions<?,?> options)
public boolean isDisabled(Object key)
public void add(Map<?,?> cache)
public RTopic getInvalidationTopic()
public String getInvalidationTopicName()
protected abstract void updateCache(io.netty.buffer.ByteBuf keyBuf, io.netty.buffer.ByteBuf valueBuf) throws IOException
IOException
public void remove()
public String getUpdatesLogName()
Copyright © 2014–2020 Redisson. All rights reserved.