Version 3 of the LMAX Disruptor deprecated the constructor that takes an Executor. So the following gives a compile warning:
Disruptor(eventFactory, bufferSize, Executors.newSingleThreadExecutor())
The new approach uses the ThreadFactory
.
How do I instantiate an equivalent Disruptor without causing a warning?