public final class AeronClient extends Object
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<? extends AeronConnection> |
connect()
Connects
AeronClient. |
reactor.core.publisher.Mono<? extends AeronConnection> |
connect(UnaryOperator<AeronOptions> op)
Connects
AeronClient with options. |
static AeronClient |
create(AeronResources resources)
Creates
AeronClient. |
AeronClient |
handle(Function<? super AeronConnection,? extends org.reactivestreams.Publisher<Void>> handler)
Attach IO handler to react on connected client.
|
AeronClient |
options(String address,
int port,
int controlPort)
Shortcut client settings.
|
AeronClient |
options(UnaryOperator<AeronOptions> op)
Setting up
AeronClient options. |
public static AeronClient create(AeronResources resources)
AeronClient.resources - aeron resourcesAeronClientpublic reactor.core.publisher.Mono<? extends AeronConnection> connect()
AeronClient.public reactor.core.publisher.Mono<? extends AeronConnection> connect(UnaryOperator<AeronOptions> op)
AeronClient with options.op - unary opearator for performing setup of optionspublic AeronClient options(UnaryOperator<AeronOptions> op)
AeronClient options.op - unary opearator for performing setup of optionsAeronClient with applied optionspublic AeronClient options(String address, int port, int controlPort)
address - server addressport - server portcontrolPort - server control portAeronClient with applied optionspublic AeronClient handle(Function<? super AeronConnection,? extends org.reactivestreams.Publisher<Void>> handler)
handler - IO handler that can dispose underlying connection when Publisher
terminates.AeronClient with handlerCopyright © 2015–2019. All rights reserved.