Interface ScheduledConsumer<I extends Invocation>

  • Type Parameters:
    I - Invocation metadata
    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 ScheduledConsumer<I extends Invocation>
    Consumer invoked by scheduler in defined interval.
    • Method Detail

      • run

        void run​(I invocation)
          throws Throwable
        Invoked by scheduler in defined interval.
        Parameters:
        invocation - invocation metadata
        Throws:
        Throwable - all exceptions are going to be logged