| Modifier and Type | Method | Description |
|---|---|---|
static DataChunk |
DataChunk.create(boolean flush,
java.nio.ByteBuffer data) |
Creates a reusable data chunk.
|
static DataChunk |
DataChunk.create(boolean flush,
java.nio.ByteBuffer data,
java.lang.Runnable releaseCallback) |
Creates a reusable data chunk.
|
static DataChunk |
DataChunk.create(byte[] bytes) |
Creates a simple byte array backed data chunk.
|
static DataChunk |
DataChunk.create(java.nio.ByteBuffer byteBuffer) |
Creates a simple
ByteBuffer backed data chunk. |
| Modifier and Type | Method | Description |
|---|---|---|
default java.util.concurrent.CompletionStage<? extends R> |
Reader.apply(Flow.Publisher<DataChunk> publisher) |
Transforms a publisher into a completion stage.
|
java.util.concurrent.CompletionStage<? extends R> |
Reader.apply(Flow.Publisher<DataChunk> publisher,
java.lang.Class<? super R> clazz) |
Transforms a publisher into a completion stage.
|
default <T extends R> |
Reader.applyAndCast(Flow.Publisher<DataChunk> publisher,
java.lang.Class<T> type) |
Transforms a publisher into a completion stage.
|
void |
Content.registerFilter(java.util.function.Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function) |
Registers a filter that allows a control of the original publisher.
|
void |
Content.registerFilter(java.util.function.Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function) |
Registers a filter that allows a control of the original publisher.
|
void |
Content.subscribe(Flow.Subscriber<? super DataChunk> subscriber) |
If possible, adds the given Subscriber to this publisher.
|
Copyright © 2018 Oracle Corporation. All rights reserved.