public static class Listener.ThreadedListener extends Listener.QueuedListener
Listener.LagListener, Listener.QueuedListener, Listener.ReflectionListener, Listener.ThreadedListener
Modifier and Type | Field and Description |
---|---|
protected ExecutorService |
threadPool |
Constructor and Description |
---|
Listener.ThreadedListener(Listener listener)
Creates a single thread to process notification events.
|
Listener.ThreadedListener(Listener listener,
ExecutorService threadPool)
Uses the specified threadPool to process notification events.
|
Modifier and Type | Method and Description |
---|---|
void |
queue(Runnable runnable) |
connected, disconnected, idle, received
protected final ExecutorService threadPool
public Listener.ThreadedListener(Listener listener)
public Listener.ThreadedListener(Listener listener, ExecutorService threadPool)
public void queue(Runnable runnable)
queue
in class Listener.QueuedListener
Copyright © 2014. All Rights Reserved.