|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventCodec
EventCodec defines the interface that Java IAF codecs implement so they can be used by the IAF to convert a downstream event from the transport into the normalised form required by the Semantic Mapper.
Field Summary | |
---|---|
static int |
API_VERSION
Codec API version. |
Method Summary | |
---|---|
void |
sendNormalisedEvent(NormalisedEvent event,
TimestampSet timestamps)
Called by the Semantic Mapper to encode a normalised event and send it through to the transport. |
Methods inherited from interface com.apama.iaf.plugin.EventDecoder |
---|
sendTransportEvent |
Field Detail |
---|
static final int API_VERSION
Version history:
1.1 First public version, with interface similar to C interface 1.1.
1.2 Added new thrown exceptions, so that Semantic Mapper and CodecException errors can be passed straight up the chain of callers, without wrapping inside other exceptions.
4.0 Addition of high-accuracy timestamps for latency measurement.
Method Detail |
---|
void sendNormalisedEvent(NormalisedEvent event, TimestampSet timestamps) throws CodecException, TransportException
event
- A NormalisedEvent representing the event to be encoded.timestamps
- A TimestampSet representing the timestamps attached
to the event.
CodecException
- Thrown by the codec if the event provided
has an invalid format.
TransportException
- Thrown if an error occurred in the Transport
when sending the message.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |