ISessionHandler Interface
public interface ISessionHandler
Defines the contract for registering the session message processing callback registerSessionHandler(ISessionHandler handler) or registerSessionHandler(ISessionHandler handler) for QueueClient and SubscriptionClient.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Completable |
OnCloseSessionAsync(IMessageSession session)
Called just before a session is closed by the session pump |
abstract void |
notifyException(Throwable exception, ExceptionPhase phase)
Receiving the exceptions that passed by pump during message processing. |
abstract
Completable |
onMessageAsync(IMessageSession session, IMessage message)
The callback for message pump to pass received Messages. |
Method Details
OnCloseSessionAsync
public abstract CompletableFuture
Called just before a session is closed by the session pump
Parameters:
Returns:
notifyException
public abstract void notifyException(Throwable exception, ExceptionPhase phase)
Receiving the exceptions that passed by pump during message processing.
Parameters:
onMessageAsync
public abstract CompletableFuture
The callback for message pump to pass received Messages.
Parameters:
Returns:
Applies to
Azure SDK for Java