org.apache.qpid.management.domain.handler.base
Interface IMessageHandler

All Known Implementing Classes:
BaseMessageHandler, ConfigurationMessageHandler, ContentIndicationMessageHandler, EventContentMessageHandler, HeartBeatIndicationMessageHandler, InstrumentationMessageHandler, MethodResponseMessageHandler, SchemaResponseMessageHandler

public interface IMessageHandler

Interface definition for a processor able to deal with a specific message. The concrete implementor must define what has to be done with the supplied (incoming) stream and the sequence number.


Method Summary
 void process(org.apache.qpid.transport.codec.Decoder decoder, int sequenceNumber)
          Processes the (incoming) stream message.
 void setDomainModel(DomainModel domainModel)
          Injects the domain model into this handler.
 

Method Detail

process

void process(org.apache.qpid.transport.codec.Decoder decoder,
             int sequenceNumber)
Processes the (incoming) stream message. Note that the main controller (the component that is controlling this handler) has already read the magic number and the sequence number so here concrete implementors must start from that point (that is, just after the sequence number).

Parameters:
decoder - the stream decoder.
sequenceNumber - the sequence number of the message.

setDomainModel

void setDomainModel(DomainModel domainModel)
Injects the domain model into this handler.

Parameters:
domainModel - the domain model.


Licensed to the Apache Software Foundation