org.jlab.coda.cMsg
Interface cMsgDeliverMessageInterface

All Known Implementing Classes:
cMsgMessageDeliverer

public interface cMsgDeliverMessageInterface

Classes that implement this interface provide a means for a subdomain handler object to talk to its client - providing the client with responses to its requests. It is assumed that a single object of this type talks to one specific client. Thus the deliverMessage and deliverMessageAndAcknowledge methods do not have an argument specifying the client. The implementing class should store and use this information aside from the use of this interface.


Method Summary
 void close()
          Method to close all system resources that need closing.
 void deliverMessage(cMsgMessage msg, int msgType)
          Method to deliver a message from a domain server's subdomain handler to a client.
 boolean deliverMessageAndAcknowledge(cMsgMessage msg, int msgType)
          Method to deliver a message from a domain server's subdomain handler to a client and receive acknowledgment that the message was received.
 

Method Detail

close

void close()
Method to close all system resources that need closing.


deliverMessage

void deliverMessage(cMsgMessage msg,
                    int msgType)
                    throws cMsgException,
                           java.io.IOException
Method to deliver a message from a domain server's subdomain handler to a client.

Parameters:
msg - message to sent to client
msgType - type of communication with the client
Throws:
cMsgException
java.io.IOException

deliverMessageAndAcknowledge

boolean deliverMessageAndAcknowledge(cMsgMessage msg,
                                     int msgType)
                                     throws cMsgException,
                                            java.io.IOException
Method to deliver a message from a domain server's subdomain handler to a client and receive acknowledgment that the message was received.

Parameters:
msg - message to sent to client
msgType - type of communication with the client
Returns:
true if message acknowledged by receiver, otherwise false
Throws:
cMsgException
java.io.IOException