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