public interface IoExecutionContext
IoHandler.
All methods must be called from the IoEventLoop thread.| Modifier and Type | Method and Description |
|---|---|
boolean |
canBlock()
Returns
true if blocking for IO is allowed or if we should try to do a non-blocking request for IO to be
ready. |
long |
deadlineNanos()
Returns the absolute point in time at which the next
closest scheduled task should run or
-1 if nothing is scheduled to run. |
long |
delayNanos(long currentTimeNanos)
Returns the amount of time left until the scheduled task with the closest deadline should run.
|
boolean canBlock()
true if blocking for IO is allowed or if we should try to do a non-blocking request for IO to be
ready.true if allowed, false otherwise.long delayNanos(long currentTimeNanos)
currentTimeNanos - the current nanos.long deadlineNanos()
-1 if nothing is scheduled to run.Copyright © 2008–2025 The Netty Project. All rights reserved.