Class ManualIoEventLoop.BlockingIoHandlerContext

java.lang.Object
io.netty.channel.ManualIoEventLoop.BlockingIoHandlerContext
All Implemented Interfaces:
IoHandlerContext
Enclosing class:
ManualIoEventLoop

private class ManualIoEventLoop.BlockingIoHandlerContext extends Object implements IoHandlerContext
  • Field Details

    • maxBlockingNanos

      long maxBlockingNanos
  • Constructor Details

    • BlockingIoHandlerContext

      private BlockingIoHandlerContext()
  • Method Details

    • canBlock

      public boolean canBlock()
      Description copied from interface: IoHandlerContext
      Returns true if blocking for IO is allowed or if we should try to do a non-blocking request for IO to be ready.
      Specified by:
      canBlock in interface IoHandlerContext
      Returns:
      true if allowed, false otherwise.
    • delayNanos

      public long delayNanos(long currentTimeNanos)
      Description copied from interface: IoHandlerContext
      Returns the amount of time left until the scheduled task with the closest deadline should run.
      Specified by:
      delayNanos in interface IoHandlerContext
      Parameters:
      currentTimeNanos - the current nanos.
      Returns:
      nanos
    • deadlineNanos

      public long deadlineNanos()
      Description copied from interface: IoHandlerContext
      Returns the absolute point in time at which the next closest scheduled task should run or -1 if nothing is scheduled to run.
      Specified by:
      deadlineNanos in interface IoHandlerContext
      Returns:
      deadline.