public class NettyLumberjackDecoder extends Object
| Constructor and Description |
|---|
NettyLumberjackDecoder()
Test constructor.
|
NettyLumberjackDecoder(org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
List<org.thales.punch.lumberjack.LumberjackFrame> |
decode(byte[] in)
Decode a received payload and return the lumberjack frames contained in
it.
|
List<org.thales.punch.lumberjack.LumberjackFrame> |
decode(byte[] in,
int offset)
Decode a received payload at some starting offset and return the
lumberjack frames contained in it.
|
List<org.thales.punch.lumberjack.LumberjackFrame> |
decode(io.netty.buffer.ByteBuf in)
Decode a received payload and return the lumberjack frames contained in
it.
|
List<org.thales.punch.lumberjack.LumberjackFrame> |
decodeComplete(ByteBuffer in)
Decode a received payload.
|
public NettyLumberjackDecoder()
public NettyLumberjackDecoder(org.thales.punch.libraries.metrics.api.IMetricContext metricsContext)
metricsContext - the metrics contextpublic List<org.thales.punch.lumberjack.LumberjackFrame> decode(io.netty.buffer.ByteBuf in)
in - the input payload ByteBufpublic List<org.thales.punch.lumberjack.LumberjackFrame> decode(byte[] in)
in - the input payload byte arrayIllegalArgumentException - if the data cannot be lumberjack decodedpublic List<org.thales.punch.lumberjack.LumberjackFrame> decodeComplete(ByteBuffer in)
in - public List<org.thales.punch.lumberjack.LumberjackFrame> decode(byte[] in, int offset)
in - the input payload byte arrayoffset - the starting offsetIllegalArgumentException - if the data cannot be lumberjack decodedCopyright © 2023. All rights reserved.