Class Rescheduler

java.lang.Object
io.grpc.internal.Rescheduler

final class Rescheduler extends Object
Reschedules a runnable lazily.
  • Field Details

    • scheduler

      private final ScheduledExecutorService scheduler
    • serializingExecutor

      private final Executor serializingExecutor
    • runnable

      private final Runnable runnable
    • stopwatch

      private final com.google.common.base.Stopwatch stopwatch
    • runAtNanos

      private long runAtNanos
    • enabled

      private boolean enabled
    • wakeUp

      private ScheduledFuture<?> wakeUp
  • Constructor Details

  • Method Details

    • reschedule

      void reschedule(long delay, TimeUnit timeUnit)
    • cancel

      void cancel(boolean permanent)
    • isEnabled

      static boolean isEnabled(Runnable r)
    • nanoTime

      private long nanoTime()