com.supermap.services.providers

Class DataProviderDelayCommitSetting

  • java.lang.Object
    • com.supermap.services.providers.DataProviderDelayCommitSetting
  • All Implemented Interfaces:
    java.io.Serializable


    public class DataProviderDelayCommitSetting
    extends java.lang.Object
    implements java.io.Serializable
    
    Delayed submission configuration classes
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataProviderDelayCommitSetting

        public DataProviderDelayCommitSetting()
        
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        

        Whether to enable delayed submission

        The default value is false, which means that it does not open
      • setEnabled

        public void setEnabled(boolean delayCommit)
        
        Sets whether to enable delayed commit
      • getCommitMode

        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.
      • setCommitMode

        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.
      • getCountToCommit

        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.
      • setCountToCommit

        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.
      • getUpdateInterval

        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.
      • setUpdateInterval

        public void setUpdateInterval(long updateInterval)
        
        Sets the update interval in seconds, it is valid when commitMode is IntervalUpdate.
      • isLogEntireErrorMsg

        public boolean isLogEntireErrorMsg()
        
        Whether the error details are logged.
      • setLogEntireErrorMsg

        public void setLogEntireErrorMsg(boolean logEntireErrorMsg)
        
        Sets whether the error details are logged.
      • setCachePath

        public void setCachePath(java.lang.String cachePath)
        
        Sets the directory where the data update information is temporarily stored.
      • getCachePath

        public java.lang.String getCachePath()
        
        Gets the directory where the data update information is temporarily stored.
      • getHour

        public int getHour()
        
        Gets the time to update the data, hours. The default value is 3, representing 3:00 am.
      • setHour

        public void setHour(int hour)
        
        Sets the time to update the data, hours. The default value is 3, representing 3:00 am.
      • getMinute

        public int getMinute()
        

        Gets the time to update the data, minutes.

        The default value is 0.
      • setMinute

        public void setMinute(int minute)
        
        Sets the time to update the data, minutes.
      • getDayOfWeek

        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)
      • setDayOfWeek

        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.
      • hashCode

        public int hashCode()
        
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        
        Overrides:
        equals in class java.lang.Object