|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.cache.ServerCacheOptions
public class ServerCacheOptions
Options for controlling a cache.
Constructor Summary | |
---|---|
ServerCacheOptions()
Construct with no set options. |
|
ServerCacheOptions(CacheTuning cacheTuning)
Create from the cacheTuning deployment annotation. |
|
ServerCacheOptions(ServerCacheOptions d)
Create merging default options with the deployment specified ones. |
Method Summary | |
---|---|
void |
applyDefaults(ServerCacheOptions defaults)
Apply any settings from the default settings that have not already been specifically set. |
ServerCacheOptions |
copy()
Return a copy of this object. |
int |
getMaxIdleSecs()
Return the maximum idle time. |
int |
getMaxSecsToLive()
Return the maximum time to live. |
int |
getMaxSize()
Return the maximum cache size. |
void |
setMaxIdleSecs(int maxIdleSecs)
Set the maximum idle time. |
void |
setMaxSecsToLive(int maxSecsToLive)
Set the maximum time to live. |
void |
setMaxSize(int maxSize)
Set the maximum cache size. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerCacheOptions()
public ServerCacheOptions(CacheTuning cacheTuning)
public ServerCacheOptions(ServerCacheOptions d)
Method Detail |
---|
public void applyDefaults(ServerCacheOptions defaults)
public ServerCacheOptions copy()
public int getMaxSize()
public void setMaxSize(int maxSize)
public int getMaxIdleSecs()
public void setMaxIdleSecs(int maxIdleSecs)
public int getMaxSecsToLive()
public void setMaxSecsToLive(int maxSecsToLive)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |