Class

org.http4s.blaze.channel.nio1

SelectorLoop

Related Doc: package nio1

Permalink

final class SelectorLoop extends Executor with ExecutionContext

A special thread that listens for events on the provided selector.

Note

when the SelectorLoop is closed all registered Selectables are closed with it.

Linear Supertypes
ExecutionContext, Executor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SelectorLoop
  2. ExecutionContext
  3. Executor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SelectorLoop(selector: Selector, bufferSize: Int, threadFactory: ThreadFactory)

    Permalink

    selector

    Selector to listen on.

    bufferSize

    Size of the scratch buffer instantiated for this thread.

    threadFactory

    Factory to make the Thread instance to run the loop.

Type Members

  1. abstract class LoopRunnable extends Runnable

    Permalink

    A Runnable that will only execute in this selector loop and provides access to the SelectorLoops scratch buffer.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink

    Signal to the SelectorLoop that it should close

  7. def enqueueTask(runnable: Runnable): Unit

    Permalink

    Schedule to provided Runnable for execution later

    Schedule to provided Runnable for execution later

    The task will be added to the end of the queue of tasks scheduled for execution regardless of where this method is called.

    Annotations
    @throws( ... )
    See also

    executeTask for a method that will execute the task now if the calling thread is this SelectorLoop, or schedule it for later otherwise.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def execute(runnable: Runnable): Unit

    Permalink
    Definition Classes
    SelectorLoop → ExecutionContext → Executor
    Annotations
    @throws( ... )
  11. def executeTask(runnable: Runnable): Unit

    Permalink

    Schedule the provided Runnable for execution, potentially running it now

    Schedule the provided Runnable for execution, potentially running it now

    The provided task may be executed *now* if the calling thread is this SelectorLoop, otherwise it is added to the task queue to be executed by the SelectorLoop thread later.

    Annotations
    @inline() @throws( ... )
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def initChannel(ch: NIO1Channel, mkStage: (SelectionKey) ⇒ Selectable): Unit

    Permalink

    Initialize a new Selectable channel

    Initialize a new Selectable channel

    The SelectableChannel is added to the selector loop the Selectable will be notified when it has events ready.

    Note

    the underlying SelectableChannel _must_ be configured in non-blocking mode.

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def prepare(): ExecutionContext

    Permalink
    Definition Classes
    ExecutionContext
  21. def reportFailure(cause: Throwable): Unit

    Permalink
    Definition Classes
    SelectorLoop → ExecutionContext
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExecutionContext

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped