public class SpaceCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpaceCache.DeleteResponse
Enum defining responses statuses from removal commands
|
static class |
SpaceCache.StoreResponse
Enum defining response statuses from set/add type commands
|
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
getCmds |
protected AtomicLong |
getHits |
protected AtomicLong |
getMisses |
protected AtomicLong |
setCmds |
protected AtomicLong |
started |
static int |
THIRTY_DAYS |
Constructor and Description |
---|
SpaceCache(GigaSpace space) |
Modifier and Type | Method and Description |
---|---|
SpaceCache.StoreResponse |
add(LocalCacheElement e) |
SpaceCache.StoreResponse |
append(LocalCacheElement cacheElement) |
void |
asyncEventPing() |
SpaceCache.StoreResponse |
cas(Long cas_key,
LocalCacheElement e) |
void |
close() |
SpaceCache.DeleteResponse |
delete(Key key,
int time) |
boolean |
flush_all() |
boolean |
flush_all(int expire) |
Integer |
get_add(Key key,
int mod) |
LocalCacheElement[] |
get(Key... keys) |
long |
getCurrentBytes() |
long |
getCurrentItems() |
long |
getGetCmds() |
long |
getGetHits() |
long |
getGetMisses() |
long |
getLimitMaxBytes() |
long |
getSetCmds() |
SpaceCache.StoreResponse |
prepend(LocalCacheElement cacheElement) |
SpaceCache.StoreResponse |
replace(LocalCacheElement e) |
SpaceCache.StoreResponse |
set(LocalCacheElement e) |
Map<String,Set<String>> |
stat(String arg) |
public static final int THIRTY_DAYS
protected final AtomicLong started
protected final AtomicLong getCmds
protected final AtomicLong setCmds
protected final AtomicLong getHits
protected final AtomicLong getMisses
public SpaceCache(GigaSpace space)
public SpaceCache.DeleteResponse delete(Key key, int time)
public SpaceCache.StoreResponse add(LocalCacheElement e)
public SpaceCache.StoreResponse replace(LocalCacheElement e)
public SpaceCache.StoreResponse append(LocalCacheElement cacheElement)
public SpaceCache.StoreResponse prepend(LocalCacheElement cacheElement)
public SpaceCache.StoreResponse set(LocalCacheElement e)
public SpaceCache.StoreResponse cas(Long cas_key, LocalCacheElement e)
public LocalCacheElement[] get(Key... keys)
public boolean flush_all()
public boolean flush_all(int expire)
public void close() throws IOException
IOException
public long getCurrentItems()
public long getLimitMaxBytes()
public long getCurrentBytes()
public long getGetCmds()
public long getSetCmds()
public long getGetHits()
public long getGetMisses()
public void asyncEventPing()
Copyright © GigaSpaces.