package-protected getter
@@ -167,7 +167,7 @@ public class AsyncLoggerConfigDisruptor extends AbstractLifeCycle implements Asy
private EventTranslatorTwoArg<Log4jEventWrapper, LogEvent, AsyncLoggerConfig> translator;
private volatile boolean alreadyLoggedWarning;
private final AsyncWaitStrategyFactory asyncWaitStrategyFactory;
- WaitStrategy waitStrategy; // package-protected for testing
+ private WaitStrategy waitStrategy;
private final Object queueFullEnqueueLock = new Object();
@@ -175,6 +175,11 @@ public class AsyncLoggerConfigDisruptor extends AbstractLifeCycle implements Asy
this.asyncWaitStrategyFactory = asyncWaitStrategyFactory; // may be null
}
+ // package-protected for testing
+ WaitStrategy getWaitStrategy() {
+ return waitStrategy;
+ }
+
// called from AsyncLoggerConfig constructor
@Override
public void setLogEventFactory(final LogEventFactory logEventFactory) {
