-
- All Known Subinterfaces:
MessageDispatcher
- All Known Implementing Classes:
MessageDispatcherImpl
,MultiThreadedMessageDispatcher
,SnmpCommand
,SnmpCommand.SnmpCommandMessageDispatcher
public interface TransportListener
TheTransportListener
interface is implemented by objects that process incoming messages fromTransportMapping
s, for exampleMessageDispatcher
.- Since:
- 1.6
- Version:
- 3.1.0
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <A extends Address>
voidprocessMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Processes an incoming message.
-
-
-
Method Detail
-
processMessage
<A extends Address> void processMessage(TransportMapping<? super A> sourceTransport, A incomingAddress, java.nio.ByteBuffer wholeMessage, TransportStateReference tmStateReference)
Processes an incoming message.- Type Parameters:
A
- theAddress
type.- Parameters:
sourceTransport
- aTransportMapping
instance denoting the transport that received the message and that will be used to send any responses to this message. ThesourceTransport
has to support theincomingAddress
's implementation class.incomingAddress
- theAddress
from which the message has been received.wholeMessage
- anByteBuffer
containing the received message.tmStateReference
- the transport model state reference as defined by RFC 5590.- Since:
- 1.6
-
-