Package com.voytechs.jnetstream.codec.event

Defines API for dipatching and handling of events generated by the Decoder during the decoding process.

See:
          Description

Interface Summary
DecoderListener Interface to accept event dispatches from Decoder.
 

Class Summary
DecoderEvent This is a base class for all Decoder events.
DecoderFlowEvent As flows are created, updated and eventually expired, the DecoderFlowListener are notified.
DecoderHeaderEvent Decoder event for new headers.
DecoderInternals Base class for certain Events.
DecoderPacketEvent Decoder event for new packets.
DecoderSupport This is a dispatcher support class for Decoder decodes.
 

Package com.voytechs.jnetstream.codec.event Description

Defines API for dipatching and handling of events generated by the Decoder during the decoding process.
A user implementing the DecoderListener interface can register itself with the decoder to be notified of specific or all types of events. The following events are supported.

Event is dispatched to the listeners who implement the DecoderListener interface using the processDecoderEvent() method. You also can throw AssertFailure exception which will cause the decoder to abort what it was doing. I.e. if you hare handling a DecoderPacketEvent and throw the AssertFailure exception, the decoder will abort the packet and not return it to the user.