io.helidon.common.reactive.Flow.Publisher<ResponseChunk>public class ReadableByteChannelPublisher extends java.lang.Object implements io.helidon.common.reactive.Flow.Publisher<ResponseChunk>
subscriber. If channel doesn't offer data, then it is requested
again after some period defined be retry schema.
Only first subscriber is accepted.
| Constructor | Description |
|---|---|
ReadableByteChannelPublisher(java.nio.channels.ReadableByteChannel channel,
io.helidon.common.reactive.RetrySchema retrySchema) |
Creates new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
subscribe(io.helidon.common.reactive.Flow.Subscriber<? super ResponseChunk> subscriberParam) |
public ReadableByteChannelPublisher(java.nio.channels.ReadableByteChannel channel,
io.helidon.common.reactive.RetrySchema retrySchema)
channel - a channel to read and publishretrySchema - a retry schema functional interface used in case, that channel read retrieved zero bytes.public void subscribe(io.helidon.common.reactive.Flow.Subscriber<? super ResponseChunk> subscriberParam)
subscribe in interface io.helidon.common.reactive.Flow.Publisher<ResponseChunk>Copyright © 2018 Oracle Corporation. All rights reserved.