Uses of Interface
dev.sympho.bot_utils.component.ButtonManager.HandlerFunction
Packages that use ButtonManager.HandlerFunction
-
Uses of ButtonManager.HandlerFunction in dev.sympho.bot_utils.component
Methods in dev.sympho.bot_utils.component that return ButtonManager.HandlerFunctionModifier and TypeMethodDescriptionButtonManager.Handler.handler()Returns the value of thehandlerrecord component.ButtonManager.mutex(ButtonManager.HandlerFunction handler) Converts a handler into a mutually-exclusive handler, where concurrent interactions to buttons in the same message (not necessarily the same button, but any button in the message whose handler is also a mutex in this manager) will only allow one execution (namely the first) to proceeed while the others fail, until the executing handler finishes.Methods in dev.sympho.bot_utils.component with parameters of type ButtonManager.HandlerFunctionModifier and TypeMethodDescriptionButtonManager.mutex(ButtonManager.HandlerFunction handler) Converts a handler into a mutually-exclusive handler, where concurrent interactions to buttons in the same message (not necessarily the same button, but any button in the message whose handler is also a mutex in this manager) will only allow one execution (namely the first) to proceeed while the others fail, until the executing handler finishes.static ButtonManager.HandlerButtonManager.Handler.of(ButtonManager.HandlerFunction handler) Creates a handler that uses the given function and requires no groups.static ButtonManager.HandlerButtonManager.Handler.of(ButtonManager.HandlerFunction handler, Group group) Creates a handler that uses the given function and requires the given group.static ButtonManager.HandlerEntryButtonManager.HandlerEntry.of(String id, ButtonManager.HandlerFunction handler, boolean mutex) Creates a handler with the given ID that uses the given function and requires no groups.static ButtonManager.HandlerEntryButtonManager.HandlerEntry.of(String id, ButtonManager.HandlerFunction handler, boolean mutex, Group group) Creates a handler with the given ID that uses the given function and requires the given group.Method parameters in dev.sympho.bot_utils.component with type arguments of type ButtonManager.HandlerFunctionModifier and TypeMethodDescriptionButtonManager.Handler.compose(UnaryOperator<ButtonManager.HandlerFunction> transform) Constructors in dev.sympho.bot_utils.component with parameters of type ButtonManager.HandlerFunctionModifierConstructorDescriptionHandler(ButtonManager.HandlerFunction handler, Group group) Creates an instance of aHandlerrecord class.