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,
Cache<?,?> cache,
RObject object,
byte[] instanceId,
Codec codec,
LocalCachedMapOptions<?,?> options,
long cacheUpdateLogTime) |
Modifier and Type | Method and Description |
---|---|
void |
add() |
RFuture<Void> |
clearLocalCacheAsync() |
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, Cache<?,?> cache, RObject object, byte[] instanceId, Codec codec, LocalCachedMapOptions<?,?> options, long cacheUpdateLogTime)
public boolean isDisabled(Object key)
public void add()
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–2019 The Redisson Project. All rights reserved.