- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Protocol codec capability for isolating a failure to an individual response.
Implementations are channel handlers installed in the connection pipeline.
The server invokes this capability on the connection's I/O thread; implementations must not block that thread.
-
Method Summary
Modifier and TypeMethodDescriptionabortResponse(String responseId, Throwable cause) Abort an individual response while preserving the connection.
-
Method Details
-
abortResponse
Abort an individual response while preserving the connection. Normal completion means that the response is terminated at the protocol level and other responses can proceed. If a termination frame is needed, its write must complete before this stage completes. Exceptional completion causes the server to retire the connection instead.- Parameters:
responseId- non-null identifier assigned to the response by the protocol codeccause- non-null failure preventing response completion- Returns:
- non-null stage completed when the response has been terminated
-