public final class AeronServer extends Object
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<? extends OnDisposable> |
bind()
Binds
AeronServer. |
reactor.core.publisher.Mono<? extends OnDisposable> |
bind(UnaryOperator<AeronOptions> op)
Binds
AeronServer with options. |
static AeronServer |
create(AeronResources resources)
Creates
AeronServer. |
AeronServer |
handle(Function<? super AeronConnection,? extends org.reactivestreams.Publisher<Void>> handler)
Attach IO handler to react on connected client.
|
AeronServer |
options(String address,
int port,
int controlPort)
Shortcut server settings.
|
AeronServer |
options(UnaryOperator<AeronOptions> op)
Setting up
AeronServer options. |
public static AeronServer create(AeronResources resources)
AeronServer.resources - aeron resourcesAeronServerpublic reactor.core.publisher.Mono<? extends OnDisposable> bind()
AeronServer.public reactor.core.publisher.Mono<? extends OnDisposable> bind(UnaryOperator<AeronOptions> op)
AeronServer with options.op - unary opearator for performing setup of optionspublic AeronServer options(UnaryOperator<AeronOptions> op)
AeronServer options.op - unary opearator for performing setup of optionsAeronServer with applied optionspublic AeronServer options(String address, int port, int controlPort)
Combination address + port shall create inbound server side entity,
by turn combination address + controlPort will result in outbound
server side component.
address - server addressport - server portcontrolPort - server control portAeronServer with applied optionspublic AeronServer handle(Function<? super AeronConnection,? extends org.reactivestreams.Publisher<Void>> handler)
handler - IO handler that can dispose underlying connection when Publisher
terminates.AeronServer with handlerCopyright © 2015–2019. All rights reserved.