public final class MessageSubscription extends Object implements org.reactivestreams.Subscription, OnDisposable, AutoCloseable
| Constructor and Description |
|---|
MessageSubscription(String category,
AeronEventLoop eventLoop,
io.aeron.Subscription subscription,
io.aeron.logbuffer.FragmentHandler fragmentHandler)
Constructor for message subscriptino.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
close() |
void |
dispose() |
boolean |
isDisposed() |
reactor.core.publisher.Mono<Void> |
onDispose()
Assign a
Disposable to be invoked when the this has been disposed. |
int |
poll()
Subscrptions poll method.
|
void |
request(long n) |
public MessageSubscription(String category, AeronEventLoop eventLoop, io.aeron.Subscription subscription, io.aeron.logbuffer.FragmentHandler fragmentHandler)
category - categoryeventLoop - event loop where this message subscription is assignedsubscription - aeron subscriptionfragmentHandler - aeron fragment handlerpublic int poll()
public void request(long n)
request in interface org.reactivestreams.Subscriptionpublic void cancel()
cancel in interface org.reactivestreams.Subscriptionpublic void close()
close in interface AutoCloseablepublic 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.