Interface Dispatcher<B extends BotConfiguration,​I,​O>

  • Type Parameters:
    B - The Bot configuration
    I - input type.
    O - output type.
    All Known Implementing Classes:
    DefaultDispatcher
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @DefaultImplementation(DefaultDispatcher.class)
    @FunctionalInterface
    public interface Dispatcher<B extends BotConfiguration,​I,​O>
    Since:
    1.0.0
    Author:
    Sergio del Amo
    • Method Detail

      • dispatch

        @NonNull
        java.util.Optional<O> dispatch​(@Nullable
                                       B bot,
                                       @NonNull @NotNull
                                       I input)