Package arc.net
Class NetListener.ThreadedListener
java.lang.Object
arc.net.NetListener.QueuedListener
arc.net.NetListener.ThreadedListener
- All Implemented Interfaces:
NetListener
- Enclosing interface:
- NetListener
Wraps a listener and processes notification events on a separate thread.
-
Nested Class Summary
Nested classes/interfaces inherited from interface arc.net.NetListener
NetListener.LagListener, NetListener.QueuedListener, NetListener.ThreadedListener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThreadedListener
(NetListener listener) Creates a single thread to process notification events.ThreadedListener
(NetListener listener, ExecutorService threadPool) Uses the specified threadPool to process notification events. -
Method Summary
Methods inherited from class arc.net.NetListener.QueuedListener
connected, disconnected, idle, received
-
Field Details
-
threadPool
-
-
Constructor Details
-
ThreadedListener
Creates a single thread to process notification events. -
ThreadedListener
Uses the specified threadPool to process notification events.
-
-
Method Details
-
queue
- Specified by:
queue
in classNetListener.QueuedListener
-