Interface IConfigurationPayloadHandler<T extends CustomPacketPayload>
- Type Parameters:
T
- The type of payload.
- All Known Implementing Classes:
ConfigurationPayloadHandler
,ConfigurationRegistration
,ModMismatchTest
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback for handling custom packets.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(T payload, ConfigurationPayloadContext context) Invoked to handle the given payload in the given context.static <Z extends CustomPacketPayload>
IConfigurationPayloadHandler<Z>noop()
Creates a replyHandler that does nothing.
-
Method Details
-
handle
Invoked to handle the given payload in the given context.- Parameters:
payload
- The payload.context
- The context.
-
noop
Creates a replyHandler that does nothing.- Type Parameters:
Z
- The type of payload.- Returns:
- The replyHandler.
-