Package jade.mtp
Interface InChannel
-
- All Known Subinterfaces:
MTP
- All Known Implementing Classes:
MessageTransportProtocol,MessageTransportProtocol
public interface InChannelThis interface is the receiver's view of an MTP.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInChannel.DispatcherCallback interface to be notified of message arrivals over this Message Transport Protocol.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransportAddressactivate(InChannel.Dispatcher disp, Profile p)Activates an MTP handler for incoming messages on a default address.voidactivate(InChannel.Dispatcher disp, TransportAddress ta, Profile p)Activates an MTP handler for incoming messages on a specific address.voiddeactivate()Deactivates all the MTP handlers.voiddeactivate(TransportAddress ta)Deactivates the MTP handler listening at a given transport address.
-
-
-
Method Detail
-
activate
TransportAddress activate(InChannel.Dispatcher disp, Profile p) throws MTPException
Activates an MTP handler for incoming messages on a default address.- Returns:
- A
TransportAddress, corresponding to the chosen default address. - Throws:
MTPException- Thrown if some MTP initialization error occurs.
-
activate
void activate(InChannel.Dispatcher disp, TransportAddress ta, Profile p) throws MTPException
Activates an MTP handler for incoming messages on a specific address.- Parameters:
ta- ATransportAddressobject, representing the transport address to listen to.- Throws:
MTPException- Thrown if some MTP initialization error occurs.
-
deactivate
void deactivate(TransportAddress ta) throws MTPException
Deactivates the MTP handler listening at a given transport address.- Parameters:
ta- TheTransportAddressobject the handle to close is listening to.- Throws:
MTPException- Thrown if some MTP cleanup error occurs.
-
deactivate
void deactivate() throws MTPExceptionDeactivates all the MTP handlers.- Throws:
MTPException- Thrown if some MTP cleanup error occurs.
-
-