public final class AeronClient extends Object
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<? extends Connection> |
connect() |
reactor.core.publisher.Mono<? extends Connection> |
connect(AeronOptions options) |
static AeronClient |
create(AeronResources aeronResources)
Create aeron client.
|
static AeronClient |
create(String name,
AeronResources aeronResources)
Create aeron client.
|
AeronClient |
handle(Function<? super Connection,? extends org.reactivestreams.Publisher<Void>> handler)
Attach an IO handler to react on connected client.
|
AeronClient |
options(Consumer<AeronOptions.Builder> options)
Apply
AeronOptions on the given options consumer. |
public static AeronClient create(AeronResources aeronResources)
aeronResources - aeronResourcespublic static AeronClient create(String name, AeronResources aeronResources)
name - nameaeronResources - aeronResourcespublic reactor.core.publisher.Mono<? extends Connection> connect()
public reactor.core.publisher.Mono<? extends Connection> connect(AeronOptions options)
public AeronClient options(Consumer<AeronOptions.Builder> options)
AeronOptions on the given options consumer.options - a consumer aeron client optionsAeronClientpublic AeronClient handle(Function<? super Connection,? extends org.reactivestreams.Publisher<Void>> handler)
handler - an IO handler that can dispose underlying connection when Publisher
terminates.AeronClientCopyright © 2015–2018. All rights reserved.