Record Class CaldavSyncTuning

java.lang.Object
java.lang.Record
org.exoplatform.caldav.model.CaldavSyncTuning
Record Components:
throttleMinutes - how long a synchronisation triggered by opening the agenda stays valid before another one is allowed
pastDays - how far back the imported window reaches
futureDays - how far forward the imported window reaches
sweepStaleMinutes - how long since a successful synchronisation makes a binding worth picking up in the background sweep
sweepBatchSize - how many stale bindings one sweep looks at

public record CaldavSyncTuning(long throttleMinutes, long pastDays, long futureDays, long sweepStaleMinutes, int sweepBatchSize) extends Record
How often and how widely eXo synchronises CalDAV accounts.

Every value has a property behind it. The property is the default; what an administrator saves here is the value. Nothing is captured at bean creation, because a screen that writes a setting nobody re-reads until the next restart is worse than no screen at all — it looks like it worked.

  • Constructor Details

    • CaldavSyncTuning

      public CaldavSyncTuning(long throttleMinutes, long pastDays, long futureDays, long sweepStaleMinutes, int sweepBatchSize)
      Creates an instance of a CaldavSyncTuning record class.
      Parameters:
      throttleMinutes - the value for the throttleMinutes record component
      pastDays - the value for the pastDays record component
      futureDays - the value for the futureDays record component
      sweepStaleMinutes - the value for the sweepStaleMinutes record component
      sweepBatchSize - the value for the sweepBatchSize record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • throttleMinutes

      public long throttleMinutes()
      Returns the value of the throttleMinutes record component.
      Returns:
      the value of the throttleMinutes record component
    • pastDays

      public long pastDays()
      Returns the value of the pastDays record component.
      Returns:
      the value of the pastDays record component
    • futureDays

      public long futureDays()
      Returns the value of the futureDays record component.
      Returns:
      the value of the futureDays record component
    • sweepStaleMinutes

      public long sweepStaleMinutes()
      Returns the value of the sweepStaleMinutes record component.
      Returns:
      the value of the sweepStaleMinutes record component
    • sweepBatchSize

      public int sweepBatchSize()
      Returns the value of the sweepBatchSize record component.
      Returns:
      the value of the sweepBatchSize record component