Top Description Methods
io.netty5.channel

public Interface IoExecutionContext


The execution context for an IoHandler. All method must be called from the EventLoop thread.

Method Summary

Modifier and TypeMethod and Description
public 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.

public 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.

public long
delayNanos(long currentTimeNanos)

Returns the amount of time left until the scheduled task with the closest deadline should run.

Method Detail

canBlockback to summary
public 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.

deadlineNanosback to summary
public 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.

delayNanosback to summary
public long delayNanos(long currentTimeNanos)

Returns the amount of time left until the scheduled task with the closest deadline should run.