类 UndertowServerHttpRequest.RequestBodyPublisher
java.lang.Object
cn.taketoday.http.server.reactive.AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
cn.taketoday.http.server.reactive.UndertowServerHttpRequest.RequestBodyPublisher
- 所有已实现的接口:
org.reactivestreams.Publisher<cn.taketoday.core.io.buffer.DataBuffer>
private class UndertowServerHttpRequest.RequestBodyPublisher
extends AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.core.io.buffer.DataBufferFactoryprivate final io.undertow.connector.ByteBufferPoolprivate final org.xnio.channels.StreamSourceChannel从类继承的字段 cn.taketoday.http.server.reactive.AbstractListenerReadPublisher
EMPTY_BUFFER, rsReadLogger -
构造器概要
构造器构造器说明RequestBodyPublisher(io.undertow.server.HttpServerExchange exchange, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) -
方法概要
修饰符和类型方法说明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.private voidregisterListeners(io.undertow.server.HttpServerExchange exchange) 从类继承的方法 cn.taketoday.http.server.reactive.AbstractListenerReadPublisher
getLogPrefix, onAllDataRead, onDataAvailable, onError, subscribe
-
字段详细资料
-
channel
private final org.xnio.channels.StreamSourceChannel channel -
byteBufferPool
private final io.undertow.connector.ByteBufferPool byteBufferPool -
bufferFactory
private final cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory
-
-
构造器详细资料
-
RequestBodyPublisher
public RequestBodyPublisher(io.undertow.server.HttpServerExchange exchange, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory)
-
-
方法详细资料
-
registerListeners
private void registerListeners(io.undertow.server.HttpServerExchange exchange) -
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>
-
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>
-
read
从类复制的说明:AbstractListenerReadPublisherRead once from the input, if possible.- 指定者:
read在类中AbstractListenerReadPublisher<cn.taketoday.core.io.buffer.DataBuffer>- 返回:
- the item that was read; or
null - 抛出:
IOException
-
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>
-