类 ServletServerHttpRequest.RequestBodyPublisher
java.lang.Object
cn.taketoday.http.server.reactive.AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
cn.taketoday.http.server.reactive.ServletServerHttpRequest.RequestBodyPublisher
- 所有已实现的接口:
org.reactivestreams.Publisher<cn.taketoday.core.io.buffer.DataBuffer>
private class ServletServerHttpRequest.RequestBodyPublisher
extends AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
-
嵌套类概要
嵌套类修饰符和类型类说明private class -
字段概要
字段从类继承的字段 cn.taketoday.http.server.reactive.AbstractListenerReadPublisher
EMPTY_BUFFER, rsReadLogger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidCheck if data is available and either callAbstractListenerReadPublisher.onDataAvailable()immediately or schedule a notification.protected voidInvoked after an I/O read error from the underlying server or after a cancellation signal from the downstream consumer to allow sub-classes to discard any current cached data they might have.protected cn.taketoday.core.io.buffer.DataBufferread()Read once from the input, if possible.protected voidInvoked when reading is paused due to a lack of demand.void从类继承的方法 cn.taketoday.http.server.reactive.AbstractListenerReadPublisher
getLogPrefix, onAllDataRead, onDataAvailable, onError, subscribe
-
字段详细资料
-
inputStream
-
-
构造器详细资料
-
RequestBodyPublisher
-
-
方法详细资料
-
registerReadListener
- 抛出:
IOException
-
checkOnDataAvailable
protected void checkOnDataAvailable()从类复制的说明:AbstractListenerReadPublisherCheck if data is available and either callAbstractListenerReadPublisher.onDataAvailable()immediately or schedule a notification.- 指定者:
checkOnDataAvailable在类中AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
-
read
从类复制的说明:AbstractListenerReadPublisherRead once from the input, if possible.- 指定者:
read在类中AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>- 返回:
- the item that was read; or
null - 抛出:
IOException
-
readingPaused
protected void readingPaused()从类复制的说明:AbstractListenerReadPublisherInvoked when reading is paused due to a lack of demand.Note: This method is guaranteed not to compete with
AbstractListenerReadPublisher.checkOnDataAvailable()so it can be used to safely suspend reading, if the underlying API supports it, i.e. without competing with an implicit call to resume viacheckOnDataAvailable().- 指定者:
readingPaused在类中AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
-
discardData
protected void discardData()从类复制的说明:AbstractListenerReadPublisherInvoked after an I/O read error from the underlying server or after a cancellation signal from the downstream consumer to allow sub-classes to discard any current cached data they might have.- 指定者:
discardData在类中AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
-