Package io.grpc.internal
Class Rescheduler
java.lang.Object
io.grpc.internal.Rescheduler
Reschedules a runnable lazily.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
private final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private long
private final Runnable
private final ScheduledExecutorService
private final Executor
private final com.google.common.base.Stopwatch
private ScheduledFuture
<?> -
Constructor Summary
ConstructorsConstructorDescriptionRescheduler
(Runnable r, Executor serializingExecutor, ScheduledExecutorService scheduler, com.google.common.base.Stopwatch stopwatch) -
Method Summary
-
Field Details
-
scheduler
-
serializingExecutor
-
runnable
-
stopwatch
private final com.google.common.base.Stopwatch stopwatch -
runAtNanos
private long runAtNanos -
enabled
private boolean enabled -
wakeUp
-
-
Constructor Details
-
Rescheduler
Rescheduler(Runnable r, Executor serializingExecutor, ScheduledExecutorService scheduler, com.google.common.base.Stopwatch stopwatch)
-
-
Method Details
-
reschedule
-
cancel
void cancel(boolean permanent) -
isEnabled
-
nanoTime
private long nanoTime()
-