jvz commented on issue #3706:
URL: 
https://github.com/apache/logging-log4j2/issues/3706#issuecomment-3001761295

   Also noticing that `SequenceReportingEventHandler` appears to also be 
available in Disruptor version 3.4.4. Otherwise, the general patch here for 
`DisruptorUtil` looks something like:
   
   ```java
       static final int DISRUPTOR_MAJOR_VERSION = 
calculateDisruptorMajorVersion();
   
       static int calculateDisruptorMajorVersion() {
           final ClassLoader classLoader = EventHandler.class.getClassLoader();
           try {
               
Class.forName("com.lmax.disruptor.SequenceReportingEventHandler", true, 
classLoader);
               return 4;
           } catch (final ClassNotFoundException | LinkageError e) {
               return 3;
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to