public class TimestreamDBConfiguration extends Object
| 构造器和说明 |
|---|
TimestreamDBConfiguration(String metaTableName)
Create TimestreamDBConfiguration
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
getDumpMeta()
Get whether the background timeline update is enabled when data is written
|
long |
getIntervalDumpMeta(TimeUnit unit)
Get the cycle of backend update timeline for UpdateTime
|
int |
getMaxDataTableNumForWrite()
Get the maximum number of data tables allowed for writing by the current client.
|
long |
getMetaCacheSize()
Get the timeline size of the background cache
|
String |
getMetaTableName()
Get the table name of the meta table
|
int |
getThreadNumForWriter()
Get the number of threads used for executing
TableStoreWriter callbacks for asynchronous data writing. |
void |
setDumpMeta(boolean dumpMeta)
Set whether to enable background update of the updateTime timeline when writing data
|
void |
setIntervalDumpMeta(int interval,
TimeUnit unit)
Set the period of the background update timeline for UpdateTime, default is 10 minutes.
|
void |
setMaxDataTableNumForWrite(int maxDataTableNumForWrite)
Set the maximum number of data tables allowed for writing by the current client.
|
void |
setMetaCacheSize(long metaCacheSize)
Set the timeline size of the background cache
|
void |
setThreadNumForWriter(int threadNumForWriter)
Set the number of threads used by the
TableStoreWriter to execute callbacks for asynchronous data writes. |
public TimestreamDBConfiguration(String metaTableName)
metaTableName - public String getMetaTableName()
public int getMaxDataTableNumForWrite()
public void setMaxDataTableNumForWrite(int maxDataTableNumForWrite)
maxDataTableNumForWrite - public void setDumpMeta(boolean dumpMeta)
dumpMeta - public boolean getDumpMeta()
public void setIntervalDumpMeta(int interval,
TimeUnit unit)
interval - The interval between updates.unit - The unit of the interval.public long getIntervalDumpMeta(TimeUnit unit)
unit - public void setMetaCacheSize(long metaCacheSize)
metaCacheSize - public long getMetaCacheSize()
public void setThreadNumForWriter(int threadNumForWriter)
TableStoreWriter to execute callbacks for asynchronous data writes.threadNumForWriter - public int getThreadNumForWriter()
TableStoreWriter callbacks for asynchronous data writing.Copyright © 2025. All Rights Reserved.