IMessageHandler Interface
public interface IMessageHandler
Defines the contract for registering the callback registerMessageHandler(IMessageHandler handler) and registerMessageHandler(IMessageHandler handler) for QueueClient and SubscriptionClient.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
notifyException(Throwable exception, ExceptionPhase phase)
Receiving the exceptions that passed by pump during message processing. |
abstract
Completable |
onMessageAsync(IMessage message)
The callback for message pump to pass received Messages. |
Method Details
notifyException
public abstract 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.
onMessageAsync
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java