java.lang.Object
io.helidon.media.common.ReadableByteChannelPublisher
- All Implemented Interfaces:
Flow.Publisher<DataChunk>
@Deprecated(since="2.0.0",
forRemoval=true)
public class ReadableByteChannelPublisher
extends Object
implements Flow.Publisher<DataChunk>
Deprecated, for removal: This API element is subject to removal in a future version.
Publish a channel content to a single
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 Summary
ConstructorDescriptionReadableByteChannelPublisher
(ReadableByteChannel channel, RetrySchema retrySchema) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(Flow.Subscriber<? super DataChunk> subscriberParam) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ReadableByteChannelPublisher
@Deprecated(since="2.0.0", forRemoval=true) public ReadableByteChannelPublisher(ReadableByteChannel channel, RetrySchema retrySchema) Deprecated, for removal: This API element is subject to removal in a future version.Creates new instance.- Parameters:
channel
- a channel to read and publishretrySchema
- a retry schema functional interface used in case, that channel read retrieved zero bytes.
-
-
Method Details
-
subscribe
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
subscribe
in interfaceFlow.Publisher<DataChunk>
-
IoMulti.multiFromByteChannel(java.nio.channels.ReadableByteChannel)
instead