Record Class ClientOrchestrator.ScheduledScriptEntry
java.lang.Object
java.lang.Record
com.botwithus.bot.api.script.ClientOrchestrator.ScheduledScriptEntry
- Enclosing interface:
ClientOrchestrator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interval()Returns the value of theintervalrecord component.Returns the value of themaxDurationrecord component.nextRun()Returns the value of thenextRunrecord component.Returns the value of thescheduleIdrecord component.Returns the value of thescriptNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScheduledScriptEntry
public ScheduledScriptEntry(String clientName, String scheduleId, String scriptName, Instant nextRun, Duration interval, Duration maxDuration) Creates an instance of aScheduledScriptEntryrecord class.- Parameters:
clientName- the value for theclientNamerecord componentscheduleId- the value for thescheduleIdrecord componentscriptName- the value for thescriptNamerecord componentnextRun- the value for thenextRunrecord componentinterval- the value for theintervalrecord componentmaxDuration- the value for themaxDurationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
scheduleId
Returns the value of thescheduleIdrecord component.- Returns:
- the value of the
scheduleIdrecord component
-
scriptName
Returns the value of thescriptNamerecord component.- Returns:
- the value of the
scriptNamerecord component
-
nextRun
Returns the value of thenextRunrecord component.- Returns:
- the value of the
nextRunrecord component
-
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
maxDuration
Returns the value of themaxDurationrecord component.- Returns:
- the value of the
maxDurationrecord component
-