IMessageHandler Interface

public interface IMessageHandler

Method Summary

Modifier and Type Method and Description
abstract void notifyException(Throwable exception, ExceptionPhase phase)

Receiving the exceptions that passed by pump during message processing.

abstract CompletableFuture<Void> onMessageAsync(IMessage message)

The callback for message pump to pass received Messages.

Method Details

notifyException

public abstract void notifyException(Throwable exception, ExceptionPhase phase)

Receiving the exceptions that passed by pump during message processing.

Parameters:

exception - Exception received in pump.
phase - Exception phase.

onMessageAsync

public abstract CompletableFuture onMessageAsync(IMessage message)

The callback for message pump to pass received Messages.

Parameters:

message - The received Message.

Returns:

CompletableFuture for the message handler.

Applies to