public class RequestDispatcher extends Object
| Constructor and Description |
|---|
RequestDispatcher(@NotNull HandlerMethodContainer handlerMethodContainer,
@NotNull TelegramSessionResolver sessionResolver,
@NotNull BotHandlerMethodArgumentResolver argumentResolver,
@NotNull BotHandlerMethodReturnValueHandler returnValueHandler,
@NotNull MetricsService metricsService) |
| Modifier and Type | Method and Description |
|---|---|
TelegramCallback |
execute(@NotNull TelegramEvent event)
Finds the
HandlerMethod request handler and invokes it. |
public RequestDispatcher(@NotNull
@NotNull HandlerMethodContainer handlerMethodContainer,
@NotNull
@NotNull TelegramSessionResolver sessionResolver,
@NotNull
@NotNull BotHandlerMethodArgumentResolver argumentResolver,
@NotNull
@NotNull BotHandlerMethodReturnValueHandler returnValueHandler,
@NotNull
@NotNull MetricsService metricsService)
public TelegramCallback execute(@NotNull @NotNull TelegramEvent event) throws IllegalStateException
HandlerMethod request handler and invokes it.event - Telegram eventIllegalStateException - when it failed to execute the handler method correctlyCopyright © 2022. All rights reserved.