public final class ByteBufFlux
extends reactor.core.publisher.FluxOperator<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf>
| Modifier and Type | Method and Description |
|---|---|
ByteBufMono |
aggregate()
Aggregate subsequent byte buffers into a single buffer.
|
reactor.core.publisher.Flux<byte[]> |
asByteArray()
Convert to a byte[] inbound
Flux |
reactor.core.publisher.Flux<java.nio.ByteBuffer> |
asByteBuffer()
Convert to a
ByteBuffer inbound Flux |
reactor.core.publisher.Flux<java.io.InputStream> |
asInputStream()
Convert to a
InputStream inbound Flux |
reactor.core.publisher.Flux<java.lang.String> |
asString()
Convert to a
String inbound Flux using the default Charset. |
reactor.core.publisher.Flux<java.lang.String> |
asString(java.nio.charset.Charset charset)
Convert to a
String inbound Flux using the provided Charset. |
static ByteBufFlux |
fromInbound(Publisher<?> source)
Decorate as
ByteBufFlux |
static ByteBufFlux |
fromInbound(Publisher<?> source,
io.netty.buffer.ByteBufAllocator allocator)
Decorate as
ByteBufFlux |
static ByteBufFlux |
fromPath(java.nio.file.Path path)
Open a
FileChannel from a path and stream
ByteBuf chunks with a default maximum size of 500K into
the returned ByteBufFlux |
static ByteBufFlux |
fromPath(java.nio.file.Path path,
io.netty.buffer.ByteBufAllocator allocator)
Open a
FileChannel from a path and stream
ByteBuf chunks with a default maximum size of 500K into the returned
ByteBufFlux, using the provided ByteBufAllocator. |
static ByteBufFlux |
fromPath(java.nio.file.Path path,
int maxChunkSize)
Open a
FileChannel from a path and stream
ByteBuf chunks with a given maximum size into the returned ByteBufFlux |
static ByteBufFlux |
fromPath(java.nio.file.Path path,
int maxChunkSize,
io.netty.buffer.ByteBufAllocator allocator)
Open a
FileChannel from a path and stream
ByteBuf chunks with a given maximum size into the returned
ByteBufFlux, using the provided ByteBufAllocator. |
ByteBufMono |
multicast()
Allow multiple consumers downstream of the flux while also disabling auto memory
release on each buffer published (retaining in order to prevent premature recycling).
|
ByteBufFlux |
retain()
Disable auto memory release on each buffer published, retaining in order to prevent
premature recycling when buffers are accumulated downstream (async).
|
void |
subscribe(reactor.core.CoreSubscriber<? super io.netty.buffer.ByteBuf> s) |
all, any, as, blockFirst, blockFirst, blockLast, blockLast, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, bufferTimeout, bufferTimeout, bufferTimeout, bufferTimeout, bufferUntil, bufferUntil, bufferWhen, bufferWhen, bufferWhile, cache, cache, cache, cache, cancelOn, cast, checkpoint, checkpoint, checkpoint, collect, collect, collectList, collectMap, collectMap, collectMap, collectMultimap, collectMultimap, collectMultimap, collectSortedList, collectSortedList, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, compose, concat, concat, concat, concat, concatDelayError, concatDelayError, concatDelayError, concatDelayError, concatMap, concatMap, concatMapDelayError, concatMapDelayError, concatMapDelayError, concatMapIterable, concatMapIterable, concatWith, concatWithValues, count, create, create, defaultIfEmpty, defer, delayElements, delayElements, delaySequence, delaySequence, delaySubscription, delaySubscription, delaySubscription, delayUntil, dematerialize, distinct, distinct, distinct, distinct, distinctUntilChanged, distinctUntilChanged, distinctUntilChanged, doAfterTerminate, doFinally, doOnCancel, doOnComplete, doOnEach, doOnError, doOnError, doOnError, doOnNext, doOnRequest, doOnSubscribe, doOnTerminate, elapsed, elapsed, elementAt, elementAt, empty, error, error, expand, expand, expandDeep, expandDeep, filter, filterWhen, filterWhen, first, first, flatMap, flatMap, flatMap, flatMap, flatMapDelayError, flatMapIterable, flatMapIterable, flatMapSequential, flatMapSequential, flatMapSequential, flatMapSequentialDelayError, from, fromArray, fromIterable, fromStream, fromStream, generate, generate, generate, getPrefetch, groupBy, groupBy, groupBy, groupBy, groupJoin, handle, hasElement, hasElements, hide, ignoreElements, index, index, interval, interval, interval, interval, join, just, just, last, last, limitRate, limitRate, limitRequest, log, log, log, log, log, log, map, materialize, merge, merge, merge, merge, merge, merge, mergeDelayError, mergeOrdered, mergeOrdered, mergeOrdered, mergeOrderedWith, mergeSequential, mergeSequential, mergeSequential, mergeSequential, mergeSequential, mergeSequential, mergeSequentialDelayError, mergeSequentialDelayError, mergeSequentialDelayError, mergeWith, name, never, next, ofType, onAssembly, onAssembly, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureDrop, onBackpressureDrop, onBackpressureError, onBackpressureLatest, onErrorMap, onErrorMap, onErrorMap, onErrorResume, onErrorResume, onErrorResume, onErrorReturn, onErrorReturn, onErrorReturn, onLastAssembly, onTerminateDetach, or, parallel, parallel, parallel, publish, publish, publish, publish, publishNext, publishOn, publishOn, publishOn, push, push, range, reduce, reduce, reduceWith, repeat, repeat, repeat, repeat, repeatWhen, replay, replay, replay, replay, replay, replay, retry, retry, retry, retry, retryWhen, sample, sample, sampleFirst, sampleFirst, sampleTimeout, sampleTimeout, scan, scan, scanWith, share, single, single, singleOrEmpty, skip, skip, skip, skipLast, skipUntil, skipUntilOther, skipWhile, sort, sort, startWith, startWith, startWith, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscribeOn, subscriberContext, subscriberContext, subscribeWith, switchIfEmpty, switchMap, switchMap, switchOnNext, switchOnNext, tag, take, take, take, takeLast, takeUntil, takeUntilOther, takeWhile, then, then, thenEmpty, thenMany, timeout, timeout, timeout, timeout, timeout, timeout, timeout, timestamp, timestamp, toIterable, toIterable, toIterable, toStream, toStream, toString, transform, using, using, window, window, window, window, window, window, window, windowTimeout, windowTimeout, windowUntil, windowUntil, windowUntil, windowWhen, windowWhile, windowWhile, withLatestFrom, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipWith, zipWith, zipWith, zipWith, zipWithIterable, zipWithIterablepublic static ByteBufFlux fromInbound(Publisher<?> source)
ByteBufFluxsource - publisher to decorateByteBufFluxpublic static ByteBufFlux fromInbound(Publisher<?> source, io.netty.buffer.ByteBufAllocator allocator)
ByteBufFluxsource - publisher to decorateallocator - the channel ByteBufAllocatorByteBufFluxpublic static ByteBufFlux fromPath(java.nio.file.Path path)
FileChannel from a path and stream
ByteBuf chunks with a default maximum size of 500K into
the returned ByteBufFluxpath - the path to the resource to streamByteBufFluxpublic static ByteBufFlux fromPath(java.nio.file.Path path, int maxChunkSize)
FileChannel from a path and stream
ByteBuf chunks with a given maximum size into the returned ByteBufFluxpath - the path to the resource to streammaxChunkSize - the maximum per-item ByteBuf sizeByteBufFluxpublic static ByteBufFlux fromPath(java.nio.file.Path path, io.netty.buffer.ByteBufAllocator allocator)
FileChannel from a path and stream
ByteBuf chunks with a default maximum size of 500K into the returned
ByteBufFlux, using the provided ByteBufAllocator.path - the path to the resource to streamallocator - the channel ByteBufAllocatorByteBufFluxpublic static ByteBufFlux fromPath(java.nio.file.Path path, int maxChunkSize, io.netty.buffer.ByteBufAllocator allocator)
FileChannel from a path and stream
ByteBuf chunks with a given maximum size into the returned
ByteBufFlux, using the provided ByteBufAllocator.path - the path to the resource to streammaxChunkSize - the maximum per-item ByteBuf sizeallocator - the channel ByteBufAllocatorByteBufFluxpublic final reactor.core.publisher.Flux<java.nio.ByteBuffer> asByteBuffer()
ByteBuffer inbound FluxByteBuffer inbound Fluxpublic final reactor.core.publisher.Flux<byte[]> asByteArray()
FluxFluxpublic reactor.core.publisher.Flux<java.io.InputStream> asInputStream()
InputStream inbound FluxInputStream inbound Fluxpublic final reactor.core.publisher.Flux<java.lang.String> asString()
String inbound Flux using the default Charset.String inbound Fluxpublic final reactor.core.publisher.Flux<java.lang.String> asString(java.nio.charset.Charset charset)
String inbound Flux using the provided Charset.charset - the decoding charsetString inbound Fluxpublic ByteBufMono aggregate()
ByteBufMono of aggregated ByteBufpublic ByteBufMono multicast()
ByteBufMono of retained ByteBufpublic ByteBufFlux retain()
ByteBufFlux of retained ByteBufpublic void subscribe(reactor.core.CoreSubscriber<? super io.netty.buffer.ByteBuf> s)
subscribe in class reactor.core.publisher.Flux<io.netty.buffer.ByteBuf>