Interface DelegatingMessageListener<T>

Type Parameters:
T - the type received by the listener.
All Superinterfaces:
AsyncRepliesAware
All Known Implementing Classes:
AbstractDelegatingMessageListenerAdapter, AbstractFilteringMessageListener, ConvertingMessageListener, FilteringBatchMessageListenerAdapter, FilteringMessageListenerAdapter, KafkaBackoffAwareMessageListenerAdapter

public interface DelegatingMessageListener<T> extends AsyncRepliesAware
Classes implementing this interface allow containers to determine the type of the ultimate listener.

This interface also implements AsyncRepliesAware contract delegating to the getDelegate(), respectivelly.

Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the delegate.
    default boolean
    Return true if the HandlerAdapter return type is async.
  • Method Details

    • getDelegate

      T getDelegate()
      Return the delegate.
      Returns:
      the delegate.
    • isAsyncReplies

      default boolean isAsyncReplies()
      Description copied from interface: AsyncRepliesAware
      Return true if the HandlerAdapter return type is async.
      Specified by:
      isAsyncReplies in interface AsyncRepliesAware
      Returns:
      true for async replies.