public class GuavaStore<K,O> extends AbstractStore<K,O>
guava
dependency to use this store.Constructor and Description |
---|
GuavaStore() |
GuavaStore(int size,
int timeout,
TimeUnit timeUnit) |
Modifier and Type | Method and Description |
---|---|
com.google.common.cache.Cache<K,O> |
getCache() |
int |
getSize() |
int |
getTimeout() |
TimeUnit |
getTimeUnit() |
protected O |
internalGet(K key) |
protected void |
internalInit()
Internal initialization of the object.
|
protected void |
internalRemove(K key) |
protected void |
internalSet(K key,
O value) |
void |
setSize(int size) |
void |
setTimeout(int timeout) |
void |
setTimeUnit(TimeUnit timeUnit) |
String |
toString() |
get, remove, set
init, reinit
public GuavaStore()
public GuavaStore(int size, int timeout, TimeUnit timeUnit)
protected void internalInit()
InitializableObject
internalInit
in class AbstractStore<K,O>
protected O internalGet(K key)
internalGet
in class AbstractStore<K,O>
protected void internalSet(K key, O value)
internalSet
in class AbstractStore<K,O>
protected void internalRemove(K key)
internalRemove
in class AbstractStore<K,O>
public int getSize()
public void setSize(int size)
public int getTimeout()
public void setTimeout(int timeout)
public TimeUnit getTimeUnit()
public void setTimeUnit(TimeUnit timeUnit)
Copyright © 2018. All rights reserved.