public class DataProviderDelayCommitSetting
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DataProviderDelayCommitSetting.CommitMode |
Constructor and Description |
---|
DataProviderDelayCommitSetting() |
DataProviderDelayCommitSetting(DataProviderDelayCommitSetting dataProviderDelayCommitSetting) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCachePath()
Gets the directory where the data update information is temporarily stored.
|
DataProviderDelayCommitSetting.CommitMode |
getCommitMode()
Gets the submission method, there are two ways to submit:
|
int |
getCountToCommit()
Gets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.
|
java.lang.String |
getDayOfWeek()
Gets what day of the week needs to update data.
|
int |
getHour()
Gets the time to update the data, hours.
|
int |
getMinute()
Gets the time to update the data, minutes.
|
long |
getUpdateInterval()
Gets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
|
int |
hashCode() |
boolean |
isEnabled()
Whether to enable delayed submission
|
boolean |
isLogEntireErrorMsg()
Whether the error details are logged.
|
void |
setCachePath(java.lang.String cachePath)
Sets the directory where the data update information is temporarily stored.
|
void |
setCommitMode(DataProviderDelayCommitSetting.CommitMode commitMode)
Sets the submission method, there are two ways to submit:
|
void |
setCountToCommit(int countToCommit)
Sets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.
|
void |
setDayOfWeek(java.lang.String dayOfWeek)
Sets what days of the week need to update data.
|
void |
setEnabled(boolean delayCommit)
Sets whether to enable delayed commit
|
void |
setHour(int hour)
Sets the time to update the data, hours.
|
void |
setLogEntireErrorMsg(boolean logEntireErrorMsg)
Sets whether the error details are logged.
|
void |
setMinute(int minute)
Sets the time to update the data, minutes.
|
void |
setUpdateInterval(long updateInterval)
Sets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
|
public DataProviderDelayCommitSetting()
public DataProviderDelayCommitSetting(DataProviderDelayCommitSetting dataProviderDelayCommitSetting)
public boolean isEnabled()
Whether to enable delayed submission
The default value is false, which means that it does not openpublic void setEnabled(boolean delayCommit)
public DataProviderDelayCommitSetting.CommitMode getCommitMode()
Gets the submission method, there are two ways to submit:
IntervalUpdate, in accordance with the set time interval to update. SpecificTime, the update is made when the set time point is reached.public void setCommitMode(DataProviderDelayCommitSetting.CommitMode commitMode)
Sets the submission method, there are two ways to submit:
IntervalUpdate, in accordance with the set time interval to update. SpecificTime, the update is made when the set time point is reached.public int getCountToCommit()
Gets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.
The default value is 1000, which means automatic commit when there are 1000 delay tasks.public void setCountToCommit(int countToCommit)
Sets the number of requests to trigger automatic submission, it is valid when commitMode is IntervalUpdate.
The default value is 1000, which means automatic commit when there are 1000 delay tasks.public long getUpdateInterval()
Gets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
The default value is 3600, which means that the update interval is 1 hour.public void setUpdateInterval(long updateInterval)
public boolean isLogEntireErrorMsg()
public void setLogEntireErrorMsg(boolean logEntireErrorMsg)
public void setCachePath(java.lang.String cachePath)
public java.lang.String getCachePath()
public int getHour()
public void setHour(int hour)
public int getMinute()
Gets the time to update the data, minutes.
The default value is 0.public void setMinute(int minute)
public java.lang.String getDayOfWeek()
Gets what day of the week needs to update data.
Sunday to Saturday correspond to 1 to 7 numbers, each separated by commas. The default is "1,2,3,4,5,6,7" (does not contain double quotation marks)public void setDayOfWeek(java.lang.String dayOfWeek)
Sets what days of the week need to update data.
Sunday to Saturday correspond to 1 to 7 numbers, each separated by commas.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object