public class EventDecoder extends AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>
AbstractStreamDecoder.BufferedStream, AbstractStreamDecoder.MalformedFrameException, AbstractStreamDecoder.Memento, AbstractStreamDecoder.Segment, AbstractStreamDecoder.StreamReadStatusBUFFER_SIZE| Constructor and Description |
|---|
EventDecoder(ReadableByteChannel channel,
ForkNodeArguments arguments) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
debugStream(byte[] array,
int position,
int remaining) |
Event |
decode(AbstractStreamDecoder.Memento memento) |
protected byte[] |
getEncodedMagicNumber() |
protected SegmentType[] |
nextSegmentType(ForkedProcessEventType eventType) |
protected Event |
toMessage(ForkedProcessEventType eventType,
AbstractStreamDecoder.Memento memento) |
checkArguments, checkDelimiter, checkHeader, getArguments, printRemainingStream, read, readByte, readCharset, readInt, readInteger, readLong, readLongPrivate, readMessageType, readSegment, readStringpublic EventDecoder(@Nonnull ReadableByteChannel channel, @Nonnull ForkNodeArguments arguments)
public Event decode(@Nonnull AbstractStreamDecoder.Memento memento) throws IOException
decode in class AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>IOException@Nonnull protected final byte[] getEncodedMagicNumber()
getEncodedMagicNumber in class AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>@Nonnull protected final SegmentType[] nextSegmentType(@Nonnull ForkedProcessEventType eventType)
nextSegmentType in class AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>@Nonnull protected final Event toMessage(@Nonnull ForkedProcessEventType eventType, @Nonnull AbstractStreamDecoder.Memento memento) throws AbstractStreamDecoder.MalformedFrameException
toMessage in class AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>AbstractStreamDecoder.MalformedFrameExceptionprotected void debugStream(byte[] array,
int position,
int remaining)
debugStream in class AbstractStreamDecoder<Event,ForkedProcessEventType,SegmentType>public void close()
throws IOException
IOExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.