Package arc.net

Class NetListener.ThreadedListener

java.lang.Object
arc.net.NetListener.QueuedListener
arc.net.NetListener.ThreadedListener
All Implemented Interfaces:
NetListener
Enclosing interface:
NetListener

public static class NetListener.ThreadedListener extends NetListener.QueuedListener
Wraps a listener and processes notification events on a separate thread.
  • Field Details

  • Constructor Details

    • ThreadedListener

      public ThreadedListener(NetListener listener)
      Creates a single thread to process notification events.
    • ThreadedListener

      public ThreadedListener(NetListener listener, ExecutorService threadPool)
      Uses the specified threadPool to process notification events.
  • Method Details