public class ClientOptions extends Object
Sequoiadb.initClient(ClientOptions)
Usage example:
ClientOptions options = new ClientOptions(); options.setEnableCache( true ); options.setCacheInterval( 300 * 1000 ); // 300s options.setExactlyDate( false ); Sequoiadb.initClient( options );
Constructor and Description |
---|
ClientOptions()
The construction method of ClientOptions.
|
Modifier and Type | Method and Description |
---|---|
long |
getCacheInterval() |
boolean |
getEnableCache() |
Boolean |
getExactlyDate() |
void |
setCacheInterval(long interval)
Set the interval for caching the name of collection space
and collection in client in milliseconds.
|
void |
setEnableCache(boolean enable)
Set caching the name of collection space and collection in client or not.
|
void |
setExactlyDate(boolean exactlyDate)
Whether to use exactly date, default is false.
|
public long getCacheInterval()
public boolean getEnableCache()
public Boolean getExactlyDate()
public void setCacheInterval(long interval)
interval
- The interval in milliseconds.public void setEnableCache(boolean enable)
enable
- True or false.public void setExactlyDate(boolean exactlyDate)
Example: A instance of java.util.Date is "2022-01-01 01:01:01", insert it to SequoiaDB with the SequoiaDB driver. 1. exactlyDate is false: the inserted data is "2022-01-01 01:01:01" 2. exactlyDate is true: the inserted data is "2022-01-01 00:00:00"
exactlyDate
- True or false.Copyright © 2023. All rights reserved.