public class ServerCacheOptions extends Object
| Constructor and Description |
|---|
ServerCacheOptions()
Construct with no set options.
|
ServerCacheOptions(CacheBeanTuning tuning)
Create from the cacheTuning deployment annotation.
|
ServerCacheOptions(CacheQueryTuning cacheTuning)
Create from the cacheTuning deployment annotation.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getTrimFrequency()
Return the trim frequency in seconds.
|
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 |
setTrimFrequency(int trimFrequency)
Set the trim frequency in seconds.
|
public ServerCacheOptions()
public ServerCacheOptions(CacheBeanTuning tuning)
public ServerCacheOptions(CacheQueryTuning cacheTuning)
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)
public int getTrimFrequency()
public void setTrimFrequency(int trimFrequency)
Copyright © 2016. All rights reserved.