Class FutureListenerNotifier

All Implemented Interfaces:
ListenerNotifier, Configurable

public class FutureListenerNotifier extends ExecutorListenerNotifier
FutureListenerNotifier is similar to ExecutorListenerNotifier, but uses Futures with an ExecutorService to implement timeouts instead of Timers. backgroundService is an unbounded executor, but will execute only as many threads are allowed by listener executors since listener executors submit tasks to the backgroundService and wait on the future. This ends up being more efficient because the threads where jobs execute are cached, instead of a new Timer thread created for each task.