Interface DispatchCallback<T>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface DispatchCallback<T>
    A callback used to signal when a item coming from a Camel route has been delivered to the external stream processor.
    • Method Detail

      • processed

        void processed​(T data,
                       Throwable error)
        Signals the delivery of the item. If the item cannot be delivered (no subscribers registered, conversion error) the related Throwable is specified as parameter.
        Parameters:
        data - the item
        error - the error occurred, if any