public class ReadThroughCacheConfiguration extends Object implements Cloneable
ReadThroughCache
.Modifier and Type | Field and Description |
---|---|
static String |
GET_KEY
Properties key for the get() proxy attribute
|
static String |
NAME_KEY
Properties key for the name attribute
|
Constructor and Description |
---|
ReadThroughCacheConfiguration()
Create default, valid configuration.
|
Modifier and Type | Method and Description |
---|---|
ReadThroughCacheConfiguration |
build()
Validate this configuration, mark it valid if it passes.
|
ReadThroughCacheConfiguration |
fromProperties(Properties properties)
Create a configuration object from a properties object.
|
String |
getName()
Get the name to set for this cache decorator.
|
boolean |
isModeGet()
Return whether the get() method is proxied.
|
ReadThroughCacheConfiguration |
modeGet(boolean modeGet)
Set whether get() methods will be transparently proxied.
|
ReadThroughCacheConfiguration |
name(String name)
Set the name to set for this cache decorator.
|
void |
setModeGet(boolean modeGet)
Set whether get() methods will be transparently proxied.
|
ReadThroughCacheConfiguration |
setName(String name)
Set the name to set for this cache decorator.
|
Properties |
toProperties()
Return a properties version of this configuration object.
|
String |
toString() |
public static final String NAME_KEY
public static final String GET_KEY
public ReadThroughCacheConfiguration()
public ReadThroughCacheConfiguration fromProperties(Properties properties)
properties
- public Properties toProperties()
public ReadThroughCacheConfiguration build()
public ReadThroughCacheConfiguration modeGet(boolean modeGet)
modeGet
- true to proxy get methodspublic boolean isModeGet()
public void setModeGet(boolean modeGet)
modeGet
- true t pxoy the get() methodspublic String getName()
public ReadThroughCacheConfiguration setName(String name)
name
- name to use, may be nullpublic ReadThroughCacheConfiguration name(String name)
name
- name to use, may be nullCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.