Class AbstractScheduledService.CustomScheduler.Schedule

  • Enclosing class:
    AbstractScheduledService.CustomScheduler

    protected static final class AbstractScheduledService.CustomScheduler.Schedule
    extends java.lang.Object
    A value object that represents an absolute delay until a task should be invoked.
    Since:
    11.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long delay  
      private java.util.concurrent.TimeUnit unit  
    • Constructor Summary

      Constructors 
      Constructor Description
      Schedule​(long delay, java.util.concurrent.TimeUnit unit)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • delay

        private final long delay
      • unit

        private final java.util.concurrent.TimeUnit unit
    • Constructor Detail

      • Schedule

        public Schedule​(long delay,
                        java.util.concurrent.TimeUnit unit)
        Parameters:
        delay - the time from now to delay execution
        unit - the time unit of the delay parameter