public class ServerCacheOptions extends Object
Constructor and Description |
---|
ServerCacheOptions()
Construct with no set options.
|
ServerCacheOptions(boolean nearCache,
io.ebean.annotation.CacheBeanTuning tuning)
Create with nearCache option.
|
ServerCacheOptions(io.ebean.annotation.CacheBeanTuning tuning)
Create from the cacheTuning deployment annotation.
|
ServerCacheOptions(io.ebean.annotation.CacheQueryTuning cacheTuning)
Create from the cacheTuning deployment annotation.
|
Modifier and Type | Method and Description |
---|---|
ServerCacheOptions |
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.
|
ServerCacheOptions |
copy(boolean nearCache)
Return a copy of this object with nearCache option.
|
int |
getMaxIdleSecs()
Return the maximum idle time.
|
int |
getMaxSecsToLive()
Return the maximum time to live.
|
int |
getMaxSize()
Return the maximum cache size.
|
int |
getTrimFrequency()
Return the trim frequency in seconds.
|
boolean |
isNearCache()
Return true if nearCache was explicitly turned on.
|
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.
|
void |
setNearCache(boolean nearCache)
Turn on nearCache option.
|
void |
setTrimFrequency(int trimFrequency)
Set the trim frequency in seconds.
|
public ServerCacheOptions()
public ServerCacheOptions(io.ebean.annotation.CacheBeanTuning tuning)
public ServerCacheOptions(io.ebean.annotation.CacheQueryTuning cacheTuning)
public ServerCacheOptions(boolean nearCache, io.ebean.annotation.CacheBeanTuning tuning)
public ServerCacheOptions applyDefaults(ServerCacheOptions defaults)
public ServerCacheOptions copy()
public ServerCacheOptions copy(boolean nearCache)
public boolean isNearCache()
public void setNearCache(boolean nearCache)
public int getMaxSize()
public void setMaxSize(int maxSize)
public int getMaxIdleSecs()
public void setMaxIdleSecs(int maxIdleSecs)
public int getMaxSecsToLive()
public void setMaxSecsToLive(int maxSecsToLive)
public int getTrimFrequency()
public void setTrimFrequency(int trimFrequency)
Copyright © 2019. All rights reserved.