public class AbstractCacheEngine extends java.lang.Object implements CacheEngine
| Constructor and Description |
|---|
AbstractCacheEngine() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareAndPut(DistCacheEntry entry,
long testValue,
MnodeUpdate mnodeUpdate,
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) |
public void start()
CacheEnginestart in interface CacheEnginepublic void initCache(CacheImpl cache)
initCache in interface CacheEnginepublic int getServerIndex()
getServerIndex in interface CacheEnginepublic boolean isLocalExpired(CacheConfig config, HashKey key, MnodeEntry mnodeEntry, long now)
isLocalExpired in interface CacheEnginepublic MnodeValue get(DistCacheEntry entry)
get in interface CacheEnginepublic void put(HashKey key, HashKey cacheKey, MnodeUpdate mnodeUpdate, long valueDataId, long valueDataTime)
put in interface CacheEnginepublic void remove(HashKey key, HashKey cacheKey, MnodeUpdate mnodeUpdate)
remove in interface CacheEnginepublic void updateTime(HashKey key, HashKey cacheKey, MnodeEntry mnodeValue)
updateTime in interface CacheEnginepublic boolean compareAndPut(DistCacheEntry entry, long testValue, MnodeUpdate mnodeUpdate, long valueDataId, long valueDataTime)
compareAndPut in interface CacheEnginepublic java.io.InputStream getAndPut(DistCacheEntry entry, MnodeUpdate mnodeValue, long valueDataId, long valueDataTime)
getAndPut in interface CacheEnginepublic void notifyLease(HashKey key, HashKey cacheKey, int leaseOwner)
notifyLease in interface CacheEngine