Class LogEventBuffer
- java.lang.Object
-
- com.dtolabs.rundeck.core.logging.internal.LogEventBuffer
-
public class LogEventBuffer extends java.lang.Object implements java.lang.Comparable, LogBuffer<LogEvent>
Buffer of log event data used byThreadBoundLogOutputStream
-
-
Constructor Summary
Constructors Constructor Description LogEventBuffer(LogLevel level, Contextual listener)LogEventBuffer(LogLevel level, Contextual listener, java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the bufferintcompareTo(java.lang.Object o)LogEventget()booleanisEmpty()voidreset()reset buffervoidwrite(byte b)write a byte
-
-
-
Constructor Detail
-
LogEventBuffer
public LogEventBuffer(LogLevel level, Contextual listener, java.nio.charset.Charset charset)
-
LogEventBuffer
public LogEventBuffer(LogLevel level, Contextual listener)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
Description copied from interface:LogBufferClear the buffer
-
reset
public void reset()
Description copied from interface:LogBufferreset buffer
-
write
public void write(byte b)
Description copied from interface:LogBufferwrite a byte
-
get
public LogEvent get()
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
-