io.helidon.common.reactive.Flow.Publisher<DataChunk>public class ReadableByteChannelPublisher extends java.lang.Object implements io.helidon.common.reactive.Flow.Publisher<DataChunk>
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 DataChunk> 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.Copyright © 2018 Oracle Corporation. All rights reserved.