Interface IPushingListener<M>

Type Parameters:
M - the raw message type
All Superinterfaces:
org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.Aware, FrankElement, HasApplicationContext, HasName, IConfigurable, IListener<M>, IScopeProvider, NameAware
All Known Subinterfaces:
IPortConnectedListener<M>, ISapListener<F>
All Known Implementing Classes:
AmqpListener, ApiListener, CmisEventListener, EsbJmsListener, FrankListener, FxfListener, JavaListener, JmsListener, MqttListener, PushingJmsListener, PushingListenerAdapter, RestListener, SapListener, SapListenerImpl, TibcoLogJmsListener, WebServiceListener

public interface IPushingListener<M> extends IListener<M>
Defines listening behaviour of message driven receivers.
Since:
4.2
Author:
Gerrit van Brakel
  • Method Details

    • setHandler

      void setHandler(@NonNull IMessageHandler<M> handler)
      Set the handler that will do the processing of the message. Each of the received messages must be pushed through handler.processMessage()
    • setExceptionListener

      void setExceptionListener(@NonNull IbisExceptionListener listener)
      Set a (single) listener that will be notified of any exceptions. The listener should use this listener to notify the receiver of any exception that occurs outside the processing of a message.
    • wrapRawMessage

      RawMessageWrapper<@NonNull M> wrapRawMessage(@NonNull M rawMessage, @NonNull PipeLineSession session) throws ListenerException
      Wrap a raw message in a MessageWrapper. Populate PipeLineSession with properties from the message.

      If the returned object is an instance of MessageWrapper then the Receiver.processRawMessage(RawMessageWrapper, PipeLineSession, boolean) will not call IListener.extractMessage(RawMessageWrapper, Map) but directly access the enclosed Message and the

      invalid reference
      RawMessageWrapper#getContext()

      .
      Parameters:
      rawMessage - The raw message data, unwrapped
      session - PipeLineSession to populate with properties from the message.
      Returns:
      Wrapped raw message
      Throws:
      ListenerException - If any exception occurs during wrapping, a ListenerException is thrown.