public final class RunAsync extends Object
Constructor and Description |
---|
RunAsync(Runnable runnable,
long atTimeNanos)
Creates a new
RunAsync message. |
Modifier and Type | Method and Description |
---|---|
Runnable |
getRunnable() |
long |
getTimeNanos() |
public RunAsync(Runnable runnable, long atTimeNanos)
RunAsync
message.runnable
- The Runnable to run.atTimeNanos
- The time (as for System.nanoTime()) when to execute the runnable.public Runnable getRunnable()
public long getTimeNanos()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.