Class AbstractOioWorker<C extends AbstractOioChannel>

java.lang.Object
org.jboss.netty.channel.socket.oio.AbstractOioWorker<C>
Type Parameters:
C - AbstractOioChannel
All Implemented Interfaces:
Runnable, Worker
Direct Known Subclasses:
OioDatagramWorker, OioWorker

abstract class AbstractOioWorker<C extends AbstractOioChannel> extends Object implements Worker
Abstract base class for Oio-Worker implementations
  • Field Details

    • eventQueue

      private final Queue<Runnable> eventQueue
    • channel

      protected final C extends AbstractOioChannel channel
    • thread

      protected volatile Thread thread
      If this worker has been started thread will be a reference to the thread used when starting. i.e. the current thread when the run method is executed.
    • done

      private volatile boolean done
  • Constructor Details

    • AbstractOioWorker

      protected AbstractOioWorker(C channel)
  • Method Details