Interface MessageHandlers
- All Superinterfaces:
Handlers
- All Known Subinterfaces:
TextHandlers
- All Known Implementing Classes:
MessageHandlers.Impl
,TextHandlers.Impl
A set of handlers that support message-based invocations.
- Since:
- 1.0
- Version:
- 1.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
A record-based implementation. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionInvocationHandler<? super MessageCommandContext>
The handler to use for executing the invocation.List<? extends ResultHandler<? super MessageCommandContext>>
result()
The handlers to use to handle the result (in the order given).
-
Method Details
-
invocation
InvocationHandler<? super MessageCommandContext> invocation()Description copied from interface:Handlers
The handler to use for executing the invocation.- Specified by:
invocation
in interfaceHandlers
- Returns:
- The handler.
-
result
List<? extends ResultHandler<? super MessageCommandContext>> result()Description copied from interface:Handlers
The handlers to use to handle the result (in the order given).
-