Class ManualIoEventLoop.BlockingIoHandlerContext

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

private class ManualIoEventLoop.BlockingIoHandlerContext extends java.lang.Object implements IoHandlerContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) long
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.