New
Release 4.0.0
- Minimum Java version now 11
- Issue #323 -
WorkerPoolandWorkProcessorhave been removed, no moreDisruptor::handleEventsWithWorkerPool Disruptorconstructors usingExecutorhave been removed. UseThreadFactoryinstead.- Rolled up event handling extension interfaces on to
EventHandler:BatchStartAwareLifecycleAwareSequenceReportingEventHandler
FatalExceptionHandlerandIgnoreExceptionHandlernow use the JDK 9 Platform Logging API, i.e.System.Logger- Add rewind batch feature to the
BatchEventProcessor - Add a maximum batch size argument to
BatchEventProcessorEventHandler::onBatchStartnow gets both thebatchSizeas well asqueueDepth(previously it hadbatchSizewhich reported queue depth)
- Added documentation to
EventPoller Util::log2throws if passed a non-positive argument- Deprecations
- Deprecated
ThreadHints.onSpinWait() - Deprecated
Disruptor.handleExceptionsWith()- this had been javadoc deprecated since 2015 but not in the code - Removed previously deprecated methods
Ringbuffer.resetTo()ConsumerRepository.getLastSequenceInChain()
- Deprecated