Package com.github.loki4j.logback
Class DefaultPipeline
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- com.github.loki4j.logback.DefaultPipeline
-
- All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware,ch.qos.logback.core.spi.LifeCycle
public final class DefaultPipeline extends ch.qos.logback.core.spi.ContextAwareBase implements ch.qos.logback.core.spi.LifeCycle
-
-
Constructor Summary
Constructors Constructor Description DefaultPipeline(Batcher batcher, java.util.Optional<java.util.Comparator<LogRecord>> recordComparator, Writer writer, ByteBufferQueue senderQueue, HttpSender sender, LoggerMetrics metrics, boolean drainOnStop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappend(long timestamp, int nanos, java.util.function.Supplier<LogRecordStream> stream, java.util.function.Supplier<java.lang.String> message)booleanisStarted()voidsetTraceEnabled(boolean traceEnabled)voidstart()voidstop()
-
-
-
Constructor Detail
-
DefaultPipeline
public DefaultPipeline(Batcher batcher, java.util.Optional<java.util.Comparator<LogRecord>> recordComparator, Writer writer, ByteBufferQueue senderQueue, HttpSender sender, LoggerMetrics metrics, boolean drainOnStop)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfacech.qos.logback.core.spi.LifeCycle
-
stop
public void stop()
- Specified by:
stopin interfacech.qos.logback.core.spi.LifeCycle
-
append
public boolean append(long timestamp, int nanos, java.util.function.Supplier<LogRecordStream> stream, java.util.function.Supplier<java.lang.String> message)
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfacech.qos.logback.core.spi.LifeCycle
-
setTraceEnabled
public void setTraceEnabled(boolean traceEnabled)
-
-