类 DataBufferUtils.ReadCompletionHandler
java.lang.Object
cn.taketoday.core.io.buffer.DataBufferUtils.ReadCompletionHandler
- 封闭类:
- DataBufferUtils
private static class DataBufferUtils.ReadCompletionHandler
extends Object
implements CompletionHandler<Integer,DataBufferUtils.ReadCompletionHandler.Attachment>
-
嵌套类概要
嵌套类修饰符和类型类说明private static final recordprivate static enum -
字段概要
字段修饰符和类型字段说明private final intprivate final AsynchronousFileChannelprivate final DataBufferFactoryprivate final AtomicLongprivate final reactor.core.publisher.FluxSink<DataBuffer>private final AtomicReference<DataBufferUtils.ReadCompletionHandler.State> -
构造器概要
构造器构造器说明ReadCompletionHandler(AsynchronousFileChannel channel, reactor.core.publisher.FluxSink<DataBuffer> sink, long position, DataBufferFactory dataBufferFactory, int bufferSize) -
方法概要
修饰符和类型方法说明voidcancel()Invoked when Reactive Streams consumer cancels.voidcompleted(Integer read, DataBufferUtils.ReadCompletionHandler.Attachment attachment) voidfailed(Throwable exc, DataBufferUtils.ReadCompletionHandler.Attachment attachment) private voidread()voidrequest(long n) Invoked when Reactive Streams consumer signals demand.private voidtryRead()
-
字段详细资料
-
channel
-
sink
-
dataBufferFactory
-
bufferSize
private final int bufferSize -
position
-
state
-
-
构造器详细资料
-
ReadCompletionHandler
public ReadCompletionHandler(AsynchronousFileChannel channel, reactor.core.publisher.FluxSink<DataBuffer> sink, long position, DataBufferFactory dataBufferFactory, int bufferSize)
-
-
方法详细资料
-
request
public void request(long n) Invoked when Reactive Streams consumer signals demand. -
cancel
public void cancel()Invoked when Reactive Streams consumer cancels. -
tryRead
private void tryRead() -
read
private void read() -
completed
-
failed
-