Package com.microsoft.azure.servicebus
Interface IMessageHandler
-
public interface IMessageHandler
Defines the contract for registering the callbackQueueClient.registerMessageHandler(IMessageHandler)
andSubscriptionClient.registerMessageHandler(IMessageHandler)
forQueueClient
andSubscriptionClient
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notifyException(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 receivedMessage
s.
-
-
-
Method Detail
-
onMessageAsync
CompletableFuture<Void> onMessageAsync(IMessage message)
The callback for message pump to pass receivedMessage
s.- 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.
-
-