public class DatabaseOptions
extends java.lang.Object
Database
.Constructor and Description |
---|
DatabaseOptions(OptionConsumer consumer) |
Modifier and Type | Method and Description |
---|---|
OptionConsumer |
getOptionConsumer()
Returns the object on which these options are being set.
|
void |
setDatacenterId(java.lang.String value)
Specify the datacenter ID that was passed to fdbserver processes running in the same datacenter as this client, for better location-aware load balancing.
|
void |
setLocationCacheSize(long value)
Set the size of the client location cache.
|
void |
setMachineId(java.lang.String value)
Specify the machine ID that was passed to fdbserver processes running on the same machine as this client, for better location-aware load balancing.
|
void |
setMaxWatches(long value)
Set the maximum number of watches allowed to be outstanding on a database connection.
|
public DatabaseOptions(OptionConsumer consumer)
public void setLocationCacheSize(long value)
value
- Max location cache entriespublic void setMaxWatches(long value)
value
- Max outstanding watchespublic void setMachineId(java.lang.String value)
value
- Hexadecimal IDpublic void setDatacenterId(java.lang.String value)
value
- Hexadecimal IDpublic OptionConsumer getOptionConsumer()