azure-docs-sdk-java/archive/docs-ref-autogen/com.microsoft.azure.service...

44 строки
3.0 KiB
YAML

### YamlMime:JavaType
methods:
- fullName: com.microsoft.azure.servicebus.IMessageHandler.notifyException(Throwable exception, ExceptionPhase phase)
name: notifyException(Throwable exception, ExceptionPhase phase)
nameWithType: IMessageHandler.notifyException(Throwable exception, ExceptionPhase phase)
parameters:
- description: <p>Exception received in pump. </p>
name: exception
type: <xref href="Throwable?alt=Throwable&text=Throwable" data-throw-if-not-resolved="False"/>
- description: <p>Exception phase. </p>
name: phase
type: <xref href="com.microsoft.azure.servicebus.ExceptionPhase?alt=com.microsoft.azure.servicebus.ExceptionPhase&text=ExceptionPhase" data-throw-if-not-resolved="False"/>
summary: >-
<p>Receiving the exceptions that passed by pump during message processing.</p>
<p></p>
syntax: public void notifyException(Throwable exception, ExceptionPhase phase)
uid: com.microsoft.azure.servicebus.IMessageHandler.notifyException(Throwable,ExceptionPhase)
- fullName: com.microsoft.azure.servicebus.IMessageHandler.onMessageAsync(IMessage message)
name: onMessageAsync(IMessage message)
nameWithType: IMessageHandler.onMessageAsync(IMessage message)
parameters:
- description: <p>The received <xref uid="com.microsoft.azure.servicebus.Message" data-throw-if-not-resolved="false" data-raw-source="Message"></xref>. </p>
name: message
type: <xref href="com.microsoft.azure.servicebus.IMessage?alt=com.microsoft.azure.servicebus.IMessage&text=IMessage" data-throw-if-not-resolved="False"/>
returns:
description: <p>CompletableFuture for the message handler. </p>
type: <xref href="CompletableFuture%3CVoid%3E?alt=CompletableFuture%3CVoid%3E&text=CompletableFuture%3CVoid%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>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.</p>
<p></p>
syntax: public CompletableFuture<Void> onMessageAsync(IMessage message)
uid: com.microsoft.azure.servicebus.IMessageHandler.onMessageAsync(IMessage)
nameWithType: IMessageHandler
syntax: public interface IMessageHandler
type: interface
uid: com.microsoft.azure.servicebus.IMessageHandler
fullName: com.microsoft.azure.servicebus.IMessageHandler
name: IMessageHandler
package: com.microsoft.azure.servicebus
summary: <p>Defines the contract for registering the callback <xref uid="" data-throw-if-not-resolved="false" data-raw-source="QueueClient#registerMessageHandler(IMessageHandler)"></xref> and <xref uid="" 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>. </p>
metadata: {}