Package com.microsoft.azure.servicebus
Interface IMessageHandler
-
public interface IMessageHandlerDefines the contract for registering the callbackQueueClient.registerMessageHandler(IMessageHandler)andSubscriptionClient.registerMessageHandler(IMessageHandler)forQueueClientandSubscriptionClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotifyException(Throwable exception, ExceptionPhase phase)Receiving the exceptions that passed by pump during message processing.CompletableFuture<Void>onMessageAsync(IMessage message)The callback for message pump to pass receivedMessages.
-
-
-
Method Detail
-
onMessageAsync
CompletableFuture<Void> onMessageAsync(IMessage message)
The callback for message pump to pass receivedMessages.- Parameters:
message- The receivedMessage.- Returns:
- CompletableFuture for the message handler.
-
notifyException
void notifyException(Throwable exception, ExceptionPhase phase)
Receiving the exceptions that passed by pump during message processing.- Parameters:
exception- Exception received in pump.phase- Exception phase.
-
-