Interface RawHandshakeDataRequestHandler<C extends EngineConnection>
-
- Type Parameters:
C- The connection type
- 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<C extends EngineConnection>
Handles a raw handshake data request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleRequest(ChannelBuf request, C connection, RawHandshakeDataRequestResponse response)Handles the request dataChannelBuffor the givenEngineConnectionand returns a response.
-
-
-
Method Detail
-
handleRequest
void handleRequest(ChannelBuf request, C connection, RawHandshakeDataRequestResponse response)
Handles the request dataChannelBuffor the givenEngineConnectionand returns a response.Throwing a
NoResponseExceptionwill result in aNoResponseExceptionon 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 bufconnection- The connection that received the request dataresponse- The response which should be completed
-
-