File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/async Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 17
17
package org .apache .logging .log4j .core .async ;
18
18
19
19
import com .lmax .disruptor .EventFactory ;
20
+ import com .lmax .disruptor .EventHandler ;
20
21
import com .lmax .disruptor .EventTranslatorTwoArg ;
21
22
import com .lmax .disruptor .ExceptionHandler ;
22
23
import com .lmax .disruptor .RingBuffer ;
23
24
import com .lmax .disruptor .Sequence ;
24
- import com .lmax .disruptor .SequenceReportingEventHandler ;
25
25
import com .lmax .disruptor .TimeoutException ;
26
26
import com .lmax .disruptor .WaitStrategy ;
27
27
import com .lmax .disruptor .dsl .Disruptor ;
@@ -92,7 +92,7 @@ public String toString() {
92
92
/**
93
93
* EventHandler performs the work in a separate thread.
94
94
*/
95
- private static class Log4jEventWrapperHandler implements SequenceReportingEventHandler <Log4jEventWrapper > {
95
+ private static class Log4jEventWrapperHandler implements EventHandler <Log4jEventWrapper > {
96
96
private static final int NOTIFY_PROGRESS_THRESHOLD = 50 ;
97
97
private Sequence sequenceCallback ;
98
98
private int counter ;
Original file line number Diff line number Diff line change 16
16
*/
17
17
package org .apache .logging .log4j .core .async ;
18
18
19
- import com .lmax .disruptor .LifecycleAware ;
19
+ import com .lmax .disruptor .EventHandler ;
20
20
import com .lmax .disruptor .Sequence ;
21
- import com .lmax .disruptor .SequenceReportingEventHandler ;
22
21
23
22
/**
24
23
* This event handler gets passed messages from the RingBuffer as they become
25
24
* available. Processing of these messages is done in a separate thread,
26
25
* controlled by the {@code Executor} passed to the {@code Disruptor}
27
26
* constructor.
28
27
*/
29
- public class RingBufferLogEventHandler implements SequenceReportingEventHandler <RingBufferLogEvent >, LifecycleAware {
28
+ public class RingBufferLogEventHandler implements EventHandler <RingBufferLogEvent > {
30
29
31
30
private static final int NOTIFY_PROGRESS_THRESHOLD = 50 ;
32
31
private Sequence sequenceCallback ;
Original file line number Diff line number Diff line change 79
79
<commons-logging .version>1.3.0</commons-logging .version>
80
80
<!-- `com.conversantmedia:disruptor` version 1.2.16 requires Java 9: -->
81
81
<conversant .disruptor.version>1.2.15</conversant .disruptor.version>
82
- <disruptor .version>3.4.4 </disruptor .version>
82
+ <disruptor .version>4.0.0 </disruptor .version>
83
83
<elasticsearch-java .version>8.11.2</elasticsearch-java .version>
84
84
<embedded-ldap .version>0.9.0</embedded-ldap .version>
85
85
<felix .version>7.0.5</felix .version>
You can’t perform that action at this time.
0 commit comments