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

65 строки
6.3 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.servicebus.ISessionHandler"
fullName: "com.microsoft.azure.servicebus.ISessionHandler"
name: "ISessionHandler"
nameWithType: "ISessionHandler"
summary: "Defines the contract for registering the session message processing callback <xref uid=\"com.microsoft.azure.servicebus.QueueClient.registerSessionHandler(com.microsoft.azure.servicebus.ISessionHandler)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"QueueClient#registerSessionHandler(ISessionHandler)\"></xref> or <xref uid=\"com.microsoft.azure.servicebus.SubscriptionClient.registerSessionHandler(com.microsoft.azure.servicebus.ISessionHandler)\" 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>."
syntax: "public interface **ISessionHandler**"
methods:
- uid: "com.microsoft.azure.servicebus.ISessionHandler.OnCloseSessionAsync(com.microsoft.azure.servicebus.IMessageSession)"
fullName: "com.microsoft.azure.servicebus.ISessionHandler.OnCloseSessionAsync(IMessageSession session)"
name: "OnCloseSessionAsync(IMessageSession session)"
nameWithType: "ISessionHandler.OnCloseSessionAsync(IMessageSession session)"
summary: "Called just before a session is closed by the session pump"
modifiers:
- "abstract"
parameters:
- description: "session being closed"
name: "session"
type: "<xref href=\"com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract CompletableFuture<Void> OnCloseSessionAsync(IMessageSession session)"
desc: "Called just before a session is closed by the session pump"
returns:
description: "a future that executes the action"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html\">CompletableFuture</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html\">Void</a>&gt;"
- uid: "com.microsoft.azure.servicebus.ISessionHandler.notifyException(java.lang.Throwable,com.microsoft.azure.servicebus.ExceptionPhase)"
fullName: "com.microsoft.azure.servicebus.ISessionHandler.notifyException(Throwable exception, ExceptionPhase phase)"
name: "notifyException(Throwable exception, ExceptionPhase phase)"
nameWithType: "ISessionHandler.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.ISessionHandler.onMessageAsync(com.microsoft.azure.servicebus.IMessageSession,com.microsoft.azure.servicebus.IMessage)"
fullName: "com.microsoft.azure.servicebus.ISessionHandler.onMessageAsync(IMessageSession session, IMessage message)"
name: "onMessageAsync(IMessageSession session, IMessage message)"
nameWithType: "ISessionHandler.onMessageAsync(IMessageSession session, 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 <xref uid=\"com.microsoft.azure.servicebus.MessageSession\" data-throw-if-not-resolved=\"false\" data-raw-source=\"MessageSession\"></xref> of the message."
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: "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(IMessageSession session, 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>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html\">Void</a>&gt;"
type: "interface"
desc: "Defines the contract for registering the session message processing callback <xref uid=\"com.microsoft.azure.servicebus.QueueClient.registerSessionHandler(com.microsoft.azure.servicebus.ISessionHandler)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"QueueClient#registerSessionHandler(ISessionHandler)\"></xref> or <xref uid=\"com.microsoft.azure.servicebus.SubscriptionClient.registerSessionHandler(com.microsoft.azure.servicebus.ISessionHandler)\" 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>."
metadata: {}
package: "com.microsoft.azure.servicebus"
artifact: com.microsoft.azure:azure-servicebus:3.6.7