Polish
This commit is contained in:
@@ -116,10 +116,9 @@ public abstract class AbstractListenerReadPublisher<T> implements Publisher<T> {
|
||||
protected abstract T read() throws IOException;
|
||||
|
||||
/**
|
||||
* Suspend reading. Defaults to no-op.
|
||||
* Suspend reading, if the underlying API provides such a mechanism.
|
||||
*/
|
||||
protected void suspendReading() {
|
||||
}
|
||||
protected abstract void suspendReading();
|
||||
|
||||
|
||||
// Private methods for use in State...
|
||||
|
||||
@@ -266,6 +266,11 @@ class ServletServerHttpRequest extends AbstractServerHttpRequest {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void suspendReading() {
|
||||
// no-op
|
||||
}
|
||||
|
||||
|
||||
private class RequestBodyPublisherReadListener implements ReadListener {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user