How to instantiate LMAX Disruptor for sequential processing

196 Views Asked by At

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?

0

There are 0 best solutions below