Package io.micronaut.http.body.stream
Class BaseSharedBuffer.AsFlux<B>
java.lang.Object
io.micronaut.http.body.stream.BaseSharedBuffer.AsFlux<B>
- Type Parameters:
B
- The buffer type
- All Implemented Interfaces:
BufferConsumer
- Enclosing class:
- BaseSharedBuffer<C extends BufferConsumer,
F>
BufferConsumer
that can subscribe to a BaseSharedBuffer
and return the
buffer as a Flux
. Used to implement ByteBody.toByteBufferPublisher()
and
similar methods.Subclass implements the specific
BufferConsumer
add
method and
size(Object)
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.http.body.stream.BufferConsumer
BufferConsumer.Upstream
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.body.stream.BufferConsumer
discard
-
Constructor Details
-
Method Details
-
size
-
add0
-
complete
public final void complete()Description copied from interface:BufferConsumer
Signal normal completion of the stream.- Specified by:
complete
in interfaceBufferConsumer
-
error
Description copied from interface:BufferConsumer
Signal an upstream error.- Specified by:
error
in interfaceBufferConsumer
- Parameters:
e
- The error
-
asFlux
-