|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.deftlabs.lock.mongo.DistributedLockSvcOptions
public class DistributedLockSvcOptions
The global distributed lock service options/config.
| Constructor Summary | |
|---|---|
DistributedLockSvcOptions(String pMongoUri)
The basic constructor. |
|
DistributedLockSvcOptions(String pMongoUri,
String pDbName,
String pCollectionName)
Constructor that allows the user to specify database and colleciton name. |
|
DistributedLockSvcOptions(String pMongoUri,
String pDbName,
String pCollectionName,
String pAppName)
Constructor that allows the user to specify database, colleciton and app name. |
|
| Method Summary | |
|---|---|
String |
getAppName()
|
String |
getCollectionName()
|
String |
getDbName()
|
boolean |
getEnableHistory()
|
String |
getHistoryCollectionName()
|
boolean |
getHistoryIsCapped()
|
long |
getHistorySize()
|
String |
getHostAddress()
|
String |
getHostname()
|
String |
getLibVersion()
|
String |
getMongoUri()
|
void |
setEnableHistory(boolean pV)
True by default. |
void |
setHistoryCollectionName(String pV)
The default collection name is: lockHistory. |
void |
setHistoryIsCapped(boolean pV)
True by default. |
void |
setHistorySize(long pV)
Set the size (in bytes) of the historical capped collection. |
void |
setHostname(String pV)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistributedLockSvcOptions(String pMongoUri)
public DistributedLockSvcOptions(String pMongoUri,
String pDbName,
String pCollectionName)
public DistributedLockSvcOptions(String pMongoUri,
String pDbName,
String pCollectionName,
String pAppName)
| Method Detail |
|---|
public String getMongoUri()
public String getDbName()
public String getCollectionName()
public String getAppName()
public void setEnableHistory(boolean pV)
public boolean getEnableHistory()
public void setHistoryIsCapped(boolean pV)
public boolean getHistoryIsCapped()
public void setHistorySize(long pV)
public long getHistorySize()
public String getLibVersion()
public String getHostname()
public void setHostname(String pV)
public String getHostAddress()
public void setHistoryCollectionName(String pV)
public String getHistoryCollectionName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||