public class AeronResources extends Object implements OnDisposable
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<MessageSubscription> |
controlSubscription(String category,
String channel,
int streamId,
ControlMessageSubscriber subscriber,
AeronEventLoop eventLoop,
Consumer<io.aeron.Image> availableImageHandler,
Consumer<io.aeron.Image> unavailableImageHandler)
Adds control subscription and register it.
|
reactor.core.publisher.Mono<MessageSubscription> |
dataSubscription(String category,
String channel,
int streamId,
DataMessageSubscriber subscriber,
AeronEventLoop eventLoop,
Consumer<io.aeron.Image> availableImageHandler,
Consumer<io.aeron.Image> unavailableImageHandler)
Adds data subscription and register it.
|
void |
dispose() |
boolean |
isDisposed() |
reactor.core.publisher.Mono<MessagePublication> |
messagePublication(String category,
String channel,
int streamId,
AeronOptions options,
AeronEventLoop eventLoop)
Adds and registers new message publication.
|
AeronEventLoop |
nextEventLoop() |
reactor.core.publisher.Mono<Void> |
onDispose()
Assign a
Disposable to be invoked when the this has been disposed. |
static AeronResources |
start()
Starts aeron resources with default config.
|
static AeronResources |
start(AeronResourcesConfig config)
Starts aeron resources with given config.
|
String |
toString() |
public static AeronResources start()
public static AeronResources start(AeronResourcesConfig config)
config - aeron configpublic AeronEventLoop nextEventLoop()
public reactor.core.publisher.Mono<MessagePublication> messagePublication(String category, String channel, int streamId, AeronOptions options, AeronEventLoop eventLoop)
category - categorychannel - channelstreamId - stream idoptions - optionseventLoop - event loop where publocation would be registeredpublic reactor.core.publisher.Mono<MessageSubscription> controlSubscription(String category, String channel, int streamId, ControlMessageSubscriber subscriber, AeronEventLoop eventLoop, Consumer<io.aeron.Image> availableImageHandler, Consumer<io.aeron.Image> unavailableImageHandler)
channel - channelstreamId - stream idsubscriber - control message subscribereventLoop - event loop where to assign control subscriptionavailableImageHandler - called when Images become available for consumption. Null
is valid if no action is to be taken.unavailableImageHandler - called when Images go unavailable for consumption. Null
is valid if no action is to be taken.public reactor.core.publisher.Mono<MessageSubscription> dataSubscription(String category, String channel, int streamId, DataMessageSubscriber subscriber, AeronEventLoop eventLoop, Consumer<io.aeron.Image> availableImageHandler, Consumer<io.aeron.Image> unavailableImageHandler)
channel - channelstreamId - stream idsubscriber - data message subscribereventLoop - event loop where to assign data subscriptionavailableImageHandler - called when Images become available for consumption. Null
is valid if no action is to be taken.unavailableImageHandler - called when Images go unavailable for consumption. Null
is valid if no action is to be taken.public 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.