public class ReadableByteChannelPublisher extends java.lang.Object implements 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 and Description |
|---|
ReadableByteChannelPublisher(java.nio.channels.ReadableByteChannel channel,
RetrySchema retrySchema)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
subscribe(Flow.Subscriber<? super DataChunk> subscriberParam) |
public ReadableByteChannelPublisher(java.nio.channels.ReadableByteChannel channel,
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(Flow.Subscriber<? super DataChunk> subscriberParam)
subscribe in interface Flow.Publisher<DataChunk>Copyright © 2018–2019 Oracle Corporation. All rights reserved.