Package io.micronaut.chatbots.core
Class DefaultDispatcher<B extends BotConfiguration,I,O>
java.lang.Object
io.micronaut.chatbots.core.DefaultDispatcher<B,I,O>
- Type Parameters:
B
- The Bot configurationI
- input type.O
- output type.
- All Implemented Interfaces:
Dispatcher<B,
I, O>
@Singleton
public class DefaultDispatcher<B extends BotConfiguration,I,O>
extends Object
implements Dispatcher<B,I,O>
Iterates through every
Handler
in odered and dispatch the message to the first which can handle the request.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultDispatcher
-
-
Method Details
-
dispatch
- Specified by:
dispatch
in interfaceDispatcher<B extends BotConfiguration,
I, O>
-