public class AeronEventLoopGroup extends Object implements OnDisposable
AeronEventLoop where the actual logic is performed. Manages grouping
of multiple instances of AeronEventLoop: round-robin iteration and grouped disposal.| Constructor and Description |
|---|
AeronEventLoopGroup(Supplier<org.agrona.concurrent.IdleStrategy> idleStrategy,
int workers)
Constructs an instance of
AeronEventLoopGroup. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose all the workers in group.
|
boolean |
isDisposed() |
AeronEventLoop |
next()
Get instance of worker from the group (round-robin iteration).
|
reactor.core.publisher.Mono<Void> |
onDispose()
Completes successfully once all the workers in the group are disposed.
|
public AeronEventLoopGroup(Supplier<org.agrona.concurrent.IdleStrategy> idleStrategy, int workers)
AeronEventLoopGroup.idleStrategy - idle strategy to follow between work cyclesworkers - number of instances in grouppublic AeronEventLoop next()
public reactor.core.publisher.Mono<Void> onDispose()
onDispose in interface OnDisposablepublic void dispose()
dispose in interface reactor.core.Disposablepublic boolean isDisposed()
isDisposed in interface reactor.core.DisposableCopyright © 2015–2018. All rights reserved.