
Package ca.uhn.fhir.broker.api
Interface IRetryAwareMessageListener<T>
- Type Parameters:
T- the type of payload this message listener is expecting to receive
- All Superinterfaces:
IMessageListener<T>
- All Known Implementing Classes:
MultiplexingListener
This is a message listener that expects to be called within a retrying context
-
Method Summary
Modifier and TypeMethodDescriptionstatic <P> voidhandleMessage(IMessageListener<P> theMessageListener, ca.uhn.fhir.rest.server.messaging.IMessageDeliveryContext theMessageDeliveryContext, ca.uhn.fhir.rest.server.messaging.IMessage<P> theMessage) Static helper method to call handleMessage on a message listener when it is not known whether the listener is an instance ofIRetryAwareMessageListenerdefault voidhandleMessage(ca.uhn.fhir.rest.server.messaging.IMessage<T> theMessage) UsehandleMessage(IMessageListener, IMessageDeliveryContext, IMessage)to properly call instances ofIRetryAwareMessageListenervoidhandleMessage(ca.uhn.fhir.rest.server.messaging.IMessageDeliveryContext theMessageDeliveryContext, ca.uhn.fhir.rest.server.messaging.IMessage<T> theMessage) This method is called whenever a new message is received.Methods inherited from interface ca.uhn.fhir.broker.api.IMessageListener
getPayloadType
-
Method Details
-
handleMessage
UsehandleMessage(IMessageListener, IMessageDeliveryContext, IMessage)to properly call instances ofIRetryAwareMessageListener- Specified by:
handleMessagein interfaceIMessageListener<T>- Parameters:
theMessage- the message that was received
-
handleMessage
void handleMessage(@Nonnull ca.uhn.fhir.rest.server.messaging.IMessageDeliveryContext theMessageDeliveryContext, @Nonnull ca.uhn.fhir.rest.server.messaging.IMessage<T> theMessage) This method is called whenever a new message is received.- Parameters:
theMessageDeliveryContext- details about the message delivery if availabletheMessage- the message that was received
-
handleMessage
static <P> void handleMessage(IMessageListener<P> theMessageListener, @Nonnull ca.uhn.fhir.rest.server.messaging.IMessageDeliveryContext theMessageDeliveryContext, ca.uhn.fhir.rest.server.messaging.IMessage<P> theMessage) Static helper method to call handleMessage on a message listener when it is not known whether the listener is an instance ofIRetryAwareMessageListener- Type Parameters:
P- the type of payload this message listener is expecting to receive- Parameters:
theMessageListener- the message listener to calltheMessageDeliveryContext- details about the message delivery if availabletheMessage- the message that was received
-