
Package ca.uhn.fhir.broker.api
Interface IMessageListener<T>
- Type Parameters:
T
- the type of payload this message listener is expecting to receive
- All Known Subinterfaces:
IRetryAwareMessageListener<T>
- All Known Implementing Classes:
MultiplexingListener
public interface IMessageListener<T>
A message listener processes messages received by a
IChannelConsumer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMessage
(ca.uhn.fhir.rest.server.messaging.IMessage<T> theMessage) This method is called whenever a new message is received.
-
Method Details
-
handleMessage
This method is called whenever a new message is received.- Parameters:
theMessage
- the message that was received
-
getPayloadType
Class<T> getPayloadType()- Returns:
- the type of payload this message listener is expecting to receive
-