Package org.exoplatform.caldav.model
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 allowedpastDays- how far back the imported window reachesfutureDays- how far forward the imported window reachessweepStaleMinutes- how long since a successful synchronisation makes a binding worth picking up in the background sweepsweepBatchSize- 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 Summary
ConstructorsConstructorDescriptionCaldavSyncTuning(long throttleMinutes, long pastDays, long futureDays, long sweepStaleMinutes, int sweepBatchSize) Creates an instance of aCaldavSyncTuningrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefutureDaysrecord component.final inthashCode()Returns a hash code value for this object.longpastDays()Returns the value of thepastDaysrecord component.intReturns the value of thesweepBatchSizerecord component.longReturns the value of thesweepStaleMinutesrecord component.longReturns the value of thethrottleMinutesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CaldavSyncTuning
public CaldavSyncTuning(long throttleMinutes, long pastDays, long futureDays, long sweepStaleMinutes, int sweepBatchSize) Creates an instance of aCaldavSyncTuningrecord class.- Parameters:
throttleMinutes- the value for thethrottleMinutesrecord componentpastDays- the value for thepastDaysrecord componentfutureDays- the value for thefutureDaysrecord componentsweepStaleMinutes- the value for thesweepStaleMinutesrecord componentsweepBatchSize- the value for thesweepBatchSizerecord component
-
-
Method Details
-
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. -
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. -
equals
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 '=='. -
throttleMinutes
public long throttleMinutes()Returns the value of thethrottleMinutesrecord component.- Returns:
- the value of the
throttleMinutesrecord component
-
pastDays
public long pastDays()Returns the value of thepastDaysrecord component.- Returns:
- the value of the
pastDaysrecord component
-
futureDays
public long futureDays()Returns the value of thefutureDaysrecord component.- Returns:
- the value of the
futureDaysrecord component
-
sweepStaleMinutes
public long sweepStaleMinutes()Returns the value of thesweepStaleMinutesrecord component.- Returns:
- the value of the
sweepStaleMinutesrecord component
-
sweepBatchSize
public int sweepBatchSize()Returns the value of thesweepBatchSizerecord component.- Returns:
- the value of the
sweepBatchSizerecord component
-