Interface RawHandshakeDataRequestResponse
-
public interface RawHandshakeDataRequestResponse
Represents a callback for the response of a request payload.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fail(ChannelException exception)
Sets the response of the request payload as failed with the givenChannelException
.void
success(java.util.function.Consumer<ChannelBuf> response)
Sets the response of the request payload as success with the given response payload.
-
-
-
Method Detail
-
fail
void fail(ChannelException exception)
Sets the response of the request payload as failed with the givenChannelException
.If this response fails, then will other side of the connection end up with a
NoResponseException
.- Parameters:
exception
- The exception
-
success
void success(java.util.function.Consumer<ChannelBuf> response)
Sets the response of the request payload as success with the given response payload.- Parameters:
response
- The response payload
-
-