Class TjahziByteBufferDestination

  • All Implemented Interfaces:
    org.apache.logging.log4j.core.layout.ByteBufferDestination

    public class TjahziByteBufferDestination
    extends Object
    implements org.apache.logging.log4j.core.layout.ByteBufferDestination
    • Constructor Detail

      • TjahziByteBufferDestination

        public TjahziByteBufferDestination​(int maxLogLineSizeBytes)
    • Method Detail

      • drainRemaining

        public void drainRemaining()
      • getByteBuffer

        public ByteBuffer getByteBuffer()
        Specified by:
        getByteBuffer in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
      • drain

        public ByteBuffer drain​(ByteBuffer buf)
        Specified by:
        drain in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
      • writeBytes

        public void writeBytes​(ByteBuffer data)
        Specified by:
        writeBytes in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
      • writeBytes

        public void writeBytes​(byte[] data,
                               int offset,
                               int length)
        Specified by:
        writeBytes in interface org.apache.logging.log4j.core.layout.ByteBufferDestination
      • initialize

        public void initialize​(BiConsumer<org.apache.logging.log4j.core.LogEvent,​ByteBuffer> drain,
                               org.apache.logging.log4j.core.LogEvent context)