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

63 строки
4.4 KiB
YAML

### YamlMime:JavaType
methods:
- fullName: com.microsoft.azure.servicebus.ISessionHandler.notifyException(Throwable exception, ExceptionPhase phase)
name: notifyException(Throwable exception, ExceptionPhase phase)
nameWithType: ISessionHandler.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.ISessionHandler.notifyException(Throwable,ExceptionPhase)
- fullName: com.microsoft.azure.servicebus.ISessionHandler.OnCloseSessionAsync(IMessageSession session)
name: OnCloseSessionAsync(IMessageSession session)
nameWithType: ISessionHandler.OnCloseSessionAsync(IMessageSession session)
parameters:
- description: <p>session being closed </p>
name: session
type: <xref href="com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession" data-throw-if-not-resolved="False"/>
returns:
description: <p>a future that executes the action </p>
type: <xref href="CompletableFuture%3CVoid%3E?alt=CompletableFuture%3CVoid%3E&text=CompletableFuture%3CVoid%3E" data-throw-if-not-resolved="False"/>
summary: >-
<p>Called just before a session is closed by the session pump</p>
<p></p>
syntax: public CompletableFuture<Void> OnCloseSessionAsync(IMessageSession session)
uid: com.microsoft.azure.servicebus.ISessionHandler.OnCloseSessionAsync(IMessageSession)
- fullName: com.microsoft.azure.servicebus.ISessionHandler.onMessageAsync(IMessageSession session, IMessage message)
name: onMessageAsync(IMessageSession session, IMessage message)
nameWithType: ISessionHandler.onMessageAsync(IMessageSession session, IMessage message)
parameters:
- description: <p>The <xref uid="com.microsoft.azure.servicebus.MessageSession" data-throw-if-not-resolved="false" data-raw-source="MessageSession"></xref> of the message. </p>
name: session
type: <xref href="com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession" data-throw-if-not-resolved="False"/>
- 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(IMessageSession session, IMessage message)
uid: com.microsoft.azure.servicebus.ISessionHandler.onMessageAsync(IMessageSession,IMessage)
nameWithType: ISessionHandler
syntax: public interface ISessionHandler
type: interface
uid: com.microsoft.azure.servicebus.ISessionHandler
fullName: com.microsoft.azure.servicebus.ISessionHandler
name: ISessionHandler
package: com.microsoft.azure.servicebus
summary: <p>Defines the contract for registering the session message processing callback <xref uid="" data-throw-if-not-resolved="false" data-raw-source="QueueClient#registerSessionHandler(ISessionHandler)"></xref> or <xref uid="" data-throw-if-not-resolved="false" data-raw-source="SubscriptionClient#registerSessionHandler(ISessionHandler)"></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: {}