Channels are simple patterns to asynchronously send a receive messages. However, a significant number of communication patterns in group communication require synchronous communication. For example, a sender would like to send a message to the group and wait for all responses. Or another application would like to send a message to the group and wait only until the majority of the receivers have sent a response, or until a timeout occurred. MessageDispatcher offers a combination of the above pattern with other patterns.
Used on top of channel to implement group requests. Client's handle()
method is called when request is received. Is the equivalent of RpcProtocol on the application instead of protocol level.
@author Bela Ban
MessageDispatcher
interface defines common services of instances that process incoming SNMP messages and dispatch them to interested {@link CommandResponder} instances. It also provides a serviceto send out outgoing SNMP messages. A MessageDispatcher
needs at least one {@link TransportMapping}and at least one {@link MessageProcessingModel} in order to be able toprocess any messages.
@author Frank Fock
@version 1.6
This dispatcher is quite similar to Spring MVCs {@link DispatcherServlet}. Just like its counterpart, this dispatcher is very flexible. This class is SOAP agnostic; in typical SOAP Web Services, the {@link SoapMessageDispatcher}subclass is used.
|
|
|
|
|
|