- All Known Subinterfaces:
MessageDispatcher
- All Known Implementing Classes:
MessageDispatcherImpl,MultiThreadedMessageDispatcher
public interface TransportListener
The
TransportListener interface is implemented by objects
that process incoming messages from TransportMappings, for
example MessageDispatcher.- Since:
- 1.6
- Version:
- 3.1.0
- Author:
- Frank Fock
-
Method Summary
Modifier and TypeMethodDescription<A extends Address>
voidprocessMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) Processes an incoming message.
-
Method Details
-
processMessage
<A extends Address> void processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, ByteBuffer wholeMessage, TransportStateReference tmStateReference) Processes an incoming message.- Type Parameters:
A- theAddresstype.- Parameters:
sourceTransport- aTransportMappinginstance denoting the transport that received the message and that will be used to send any responses to this message. ThesourceTransporthas to support theincomingAddress's implementation class.incomingAddress- theAddressfrom which the message has been received.wholeMessage- anByteBuffercontaining the received message.tmStateReference- the transport model state reference as defined by RFC 5590.- Since:
- 1.6
-