-
public interface IoExecutionContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanBlock()Returnstrueif blocking for IO is allowed or if we should try to do a non-blocking request for IO to be ready.longdeadlineNanos()Returns the absolute point in time at which the next closest scheduled task should run or-1if nothing is scheduled to run.longdelayNanos(long currentTimeNanos)Returns the amount of time left until the scheduled task with the closest deadline should run.
-
-
-
Method Detail
-
canBlock
boolean canBlock()
Returnstrueif blocking for IO is allowed or if we should try to do a non-blocking request for IO to be ready.
-
delayNanos
long delayNanos(long currentTimeNanos)
Returns the amount of time left until the scheduled task with the closest deadline should run.
-
deadlineNanos
long deadlineNanos()
Returns the absolute point in time at which the next closest scheduled task should run or-1if nothing is scheduled to run.
-
-