|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.config.TerracottaClientConfiguration
public class TerracottaClientConfiguration
Holds the Terracotta configuration for a particular client
Field Summary | |
---|---|
static boolean |
DEFAULT_REJOIN_VALUE
Default value of rejoin attribute |
Constructor Summary | |
---|---|
TerracottaClientConfiguration()
|
Method Summary | |
---|---|
TerracottaClientConfiguration |
clone()
Clones this object, following the usual contract. |
void |
extractTcconfig(String text)
Tell the BeanHandler to extract the entire subtree xml as text at element |
void |
freezeConfig()
Freezes the config |
String |
getEmbeddedConfig()
Get the embedded config read as |
String |
getOriginalEmbeddedConfig()
Get the original embedded config |
String |
getUrl()
Get url string |
boolean |
isRejoin()
Returns true if rejoin is enabled |
boolean |
isUrlConfig()
Helper to check whether this is url config or embedded config |
TerracottaClientConfiguration |
rejoin(boolean rejoin)
Builder method to set rejoin |
void |
setRejoin(boolean rejoin)
Set rejoin value |
void |
setUrl(String url)
Set url |
TerracottaClientConfiguration |
url(String url)
Builder method to set the URL. |
TerracottaClientConfiguration |
url(String host,
String port)
Builder method to set the URL for a host and a port. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_REJOIN_VALUE
Constructor Detail |
---|
public TerracottaClientConfiguration()
Method Detail |
---|
public TerracottaClientConfiguration clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public final TerracottaClientConfiguration url(String url)
url
- the URL to set
public final TerracottaClientConfiguration url(String host, String port)
host
- the host where to get the Terracotta configuration fromport
- the port on that host
public final void setUrl(String url)
public final String getUrl()
public final void extractTcconfig(String text)
public final String getEmbeddedConfig()
public final String getOriginalEmbeddedConfig()
public final boolean isUrlConfig()
public boolean isRejoin()
public void setRejoin(boolean rejoin)
rejoin
- the rejoin to setpublic TerracottaClientConfiguration rejoin(boolean rejoin)
rejoin
-
public void freezeConfig()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |