Class NioClientTest.Sender

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    NioClientTest

    protected class NioClientTest.Sender
    extends java.lang.Thread
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      protected java.nio.ByteBuffer buf  
      protected java.nio.channels.SocketChannel ch  
      protected boolean direct  
      protected java.net.InetAddress host  
      protected java.util.concurrent.CountDownLatch latch  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      Sender​(java.net.InetAddress host, boolean direct, java.util.concurrent.CountDownLatch latch)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • 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

      • ch

        protected java.nio.channels.SocketChannel ch
      • latch

        protected final java.util.concurrent.CountDownLatch latch
      • host

        protected final java.net.InetAddress host
      • direct

        protected final boolean direct
      • buf

        protected final java.nio.ByteBuffer buf
    • Constructor Detail

      • Sender

        public Sender​(java.net.InetAddress host,
                      boolean direct,
                      java.util.concurrent.CountDownLatch latch)
    • Method Detail

      • run

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