Package 

Interface Schedule


  • 
    public interface Schedule
    
                        

    A Schedule represents a type that can calculate the next execution time based on the current time and previous execution time.

    • Method Summary

      Modifier and Type Method Description
      abstract Instant nextExecutionTime(Instant currentTime, Instant previousExecutionTime) Return the next execution time as an Instant.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • nextExecutionTime

         abstract Instant nextExecutionTime(Instant currentTime, Instant previousExecutionTime)

        Return the next execution time as an Instant.

        Parameters:
        currentTime - the current time
        previousExecutionTime - the previous execution time, if this value is null then the next execution will be the first