public interface CacheEngine
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndPut(DistCacheEntry entry,
long testValue,
MnodeUpdate update,
long valueDataId,
long valueDataTime) |
MnodeValue |
get(DistCacheEntry entry) |
java.io.InputStream |
getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeValue,
long valueDataId,
long valueDataTime) |
int |
getServerIndex() |
void |
initCache(CacheImpl cache) |
boolean |
isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now) |
void |
notifyLease(HashKey key,
HashKey cacheKey,
int leaseOwner) |
void |
put(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime) |
void |
remove(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate) |
void |
start()
Starts the service
|
void |
updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue) |
void start()
void initCache(CacheImpl cache)
int getServerIndex()
boolean isLocalExpired(CacheConfig config, HashKey key, MnodeEntry mnodeEntry, long now)
MnodeValue get(DistCacheEntry entry)
void put(HashKey key, HashKey cacheKey, MnodeUpdate mnodeUpdate, long valueDataId, long valueDataTime)
void updateTime(HashKey key, HashKey cacheKey, MnodeEntry mnodeValue)
void remove(HashKey key, HashKey cacheKey, MnodeUpdate mnodeUpdate)
java.io.InputStream getAndPut(DistCacheEntry entry, MnodeUpdate mnodeValue, long valueDataId, long valueDataTime)
boolean compareAndPut(DistCacheEntry entry, long testValue, MnodeUpdate update, long valueDataId, long valueDataTime)