Interface ProtocolDecoderOutput
- All Known Implementing Classes:
AbstractProtocolDecoderOutput, ProtocolCodecFilter.ProtocolDecoderOutputImpl
public interface ProtocolDecoderOutput
Callback for
ProtocolDecoder to generate decoded messages.
ProtocolDecoder must call write(Object) for each decoded
messages.-
Method Summary
Modifier and TypeMethodDescriptionvoidflush(IoFilter.NextFilter nextFilter, IoSession session) Flushes all messages you wrote viawrite(Object)to the next filter.voidCallback forProtocolDecoderto generate decoded messages.
-
Method Details
-
write
Callback forProtocolDecoderto generate decoded messages.ProtocolDecodermust callwrite(Object)for each decoded messages.- Parameters:
message- the decoded message
-
flush
Flushes all messages you wrote viawrite(Object)to the next filter.- Parameters:
nextFilter- the next Filtersession- The current Session
-