public class ServerCacheOptions extends Object
| Constructor and Description |
|---|
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.
|
| 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.
|
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.
|
public ServerCacheOptions()
public ServerCacheOptions(CacheTuning cacheTuning)
public ServerCacheOptions(ServerCacheOptions d)
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)
Copyright © 2014. All Rights Reserved.