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 Summary

    Modifier and Type
    Method
    Description
    @NonNull Optional<O>
    dispatch(B bot, I input)
     
  • Method Details

    • dispatch

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