Class SelectorThread

  • All Implemented Interfaces:
    java.lang.Runnable

    public final class SelectorThread
    extends PayloadThread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Constructor Summary

      Constructors 
      Constructor Description
      SelectorThread​(int num, int dedicatedCpu, SchedulingPolicy schedulingPolicy, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void shutdown()  
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • selector

        public final Selector selector
      • dedicatedCpu

        public final int dedicatedCpu
      • operations

        long operations
      • sessions

        long sessions
      • maxReady

        int maxReady
    • Constructor Detail

      • SelectorThread

        public SelectorThread​(int num,
                              int dedicatedCpu,
                              SchedulingPolicy schedulingPolicy,
                              java.lang.String name)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • shutdown

        public void shutdown()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class PayloadThread