public final class DefaultAeronOutbound extends Object implements AeronOutbound, OnDisposable
| Constructor and Description |
|---|
DefaultAeronOutbound(String category,
String channel,
AeronResources resources,
AeronOptions options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
boolean |
isDisposed() |
reactor.core.publisher.Mono<Void> |
onDispose()
Assign a
Disposable to be invoked when the this has been disposed. |
AeronOutbound |
send(org.reactivestreams.Publisher<? extends ByteBuffer> dataStream)
Send data to the peer, listen for any error on write and close on terminal signal
(complete|error).
|
reactor.core.publisher.Mono<Void> |
start(long sessionId,
int streamId)
Init method.
|
reactor.core.publisher.Mono<Void> |
then()
Obtain a
Mono of pending outbound(s) write completion. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsubscribe, thenpublic DefaultAeronOutbound(String category, String channel, AeronResources resources, AeronOptions options)
category - categorychannel - channelresources - resourcesoptions - optionspublic reactor.core.publisher.Mono<Void> start(long sessionId, int streamId)
send(Publisher) function.sessionId - session idstreamId - stream idpublic AeronOutbound send(org.reactivestreams.Publisher<? extends ByteBuffer> dataStream)
AeronOutboundsend in interface AeronOutbounddataStream - the dataStream publishing items to sendAeronOutbound to append further send. It will emit a complete signal upon
successful sequence write or an error during write.public reactor.core.publisher.Mono<Void> then()
AeronOutboundMono of pending outbound(s) write completion.then in interface AeronOutboundMono of pending outbound(s) write completionpublic void dispose()
dispose in interface reactor.core.Disposablepublic boolean isDisposed()
isDisposed in interface reactor.core.Disposablepublic reactor.core.publisher.Mono<Void> onDispose()
OnDisposableDisposable to be invoked when the this has been disposed.onDispose in interface OnDisposableCopyright © 2015–2018. All rights reserved.