46 строки
4.6 KiB
YAML
46 строки
4.6 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.microsoft.azure.servicebus.IMessageHandler"
|
|
fullName: "com.microsoft.azure.servicebus.IMessageHandler"
|
|
name: "IMessageHandler"
|
|
nameWithType: "IMessageHandler"
|
|
summary: "Defines the contract for registering the callback <xref uid=\"com.microsoft.azure.servicebus.QueueClient.registerMessageHandler(com.microsoft.azure.servicebus.IMessageHandler)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"QueueClient#registerMessageHandler(IMessageHandler)\"></xref> and <xref uid=\"com.microsoft.azure.servicebus.SubscriptionClient.registerMessageHandler(com.microsoft.azure.servicebus.IMessageHandler)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SubscriptionClient#registerMessageHandler(IMessageHandler)\"></xref> for <xref uid=\"com.microsoft.azure.servicebus.QueueClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"QueueClient\"></xref> and <xref uid=\"com.microsoft.azure.servicebus.SubscriptionClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SubscriptionClient\"></xref>."
|
|
syntax: "public interface **IMessageHandler**"
|
|
methods:
|
|
- uid: "com.microsoft.azure.servicebus.IMessageHandler.notifyException(java.lang.Throwable,com.microsoft.azure.servicebus.ExceptionPhase)"
|
|
fullName: "com.microsoft.azure.servicebus.IMessageHandler.notifyException(Throwable exception, ExceptionPhase phase)"
|
|
name: "notifyException(Throwable exception, ExceptionPhase phase)"
|
|
nameWithType: "IMessageHandler.notifyException(Throwable exception, ExceptionPhase phase)"
|
|
summary: "Receiving the exceptions that passed by pump during message processing."
|
|
modifiers:
|
|
- "abstract"
|
|
parameters:
|
|
- description: "Exception received in pump."
|
|
name: "exception"
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
|
|
- description: "Exception phase."
|
|
name: "phase"
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.ExceptionPhase?alt=com.microsoft.azure.servicebus.ExceptionPhase&text=ExceptionPhase\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public abstract void notifyException(Throwable exception, ExceptionPhase phase)"
|
|
desc: "Receiving the exceptions that passed by pump during message processing."
|
|
- uid: "com.microsoft.azure.servicebus.IMessageHandler.onMessageAsync(com.microsoft.azure.servicebus.IMessage)"
|
|
fullName: "com.microsoft.azure.servicebus.IMessageHandler.onMessageAsync(IMessage message)"
|
|
name: "onMessageAsync(IMessage message)"
|
|
nameWithType: "IMessageHandler.onMessageAsync(IMessage message)"
|
|
summary: "The callback for message pump to pass received <xref uid=\"com.microsoft.azure.servicebus.Message\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Message\"></xref>s."
|
|
modifiers:
|
|
- "abstract"
|
|
parameters:
|
|
- description: "The received <xref uid=\"com.microsoft.azure.servicebus.Message\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Message\"></xref>."
|
|
name: "message"
|
|
type: "<xref href=\"com.microsoft.azure.servicebus.IMessage?alt=com.microsoft.azure.servicebus.IMessage&text=IMessage\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public abstract CompletableFuture<Void> onMessageAsync(IMessage message)"
|
|
desc: "The callback for message pump to pass received <xref uid=\"com.microsoft.azure.servicebus.Message\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Message\"></xref>s."
|
|
returns:
|
|
description: "CompletableFuture for the message handler."
|
|
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html\">CompletableFuture</a><<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html\">Void</a>>"
|
|
type: "interface"
|
|
desc: "Defines the contract for registering the callback <xref uid=\"com.microsoft.azure.servicebus.QueueClient.registerMessageHandler(com.microsoft.azure.servicebus.IMessageHandler)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"QueueClient#registerMessageHandler(IMessageHandler)\"></xref> and <xref uid=\"com.microsoft.azure.servicebus.SubscriptionClient.registerMessageHandler(com.microsoft.azure.servicebus.IMessageHandler)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SubscriptionClient#registerMessageHandler(IMessageHandler)\"></xref> for <xref uid=\"com.microsoft.azure.servicebus.QueueClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"QueueClient\"></xref> and <xref uid=\"com.microsoft.azure.servicebus.SubscriptionClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"SubscriptionClient\"></xref>."
|
|
metadata: {}
|
|
package: "com.microsoft.azure.servicebus"
|
|
artifact: com.microsoft.azure:azure-servicebus:3.6.7
|