Interface RawHandshakeDataRequestHandler<S extends EngineConnectionState>
- Type Parameters:
S
- The connection state
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface RawHandshakeDataRequestHandler<S extends EngineConnectionState>
Handles a raw handshake data request.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(ChannelBuf request, S state, RawHandshakeDataRequestResponse response) Handles the request dataChannelBuf
for the givenEngineConnection
and returns a response.
-
Method Details
-
handleRequest
Handles the request dataChannelBuf
for the givenEngineConnection
and returns a response.Throwing a
NoResponseException
will result in aNoResponseException
on the other side of the connection.Every handled request should apply the proper response to
RawHandshakeDataRequestResponse
. Responding doesn't have to be instantly and can be from a concurrent context, but it shouldn't take minutes.- Parameters:
request
- The request channel bufstate
- The state that received the request dataresponse
- The response which should be completed
-