public class ReactorFactory extends Object
Reactors or ResponseWorker within single
loading scope.| Constructor and Description |
|---|
ReactorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Reactor |
getReactor(ManagerProvider provider,
ReactorType type)
Provides instance of
Reactor based on ManagerProvider availability and
type provided. |
static ResponseWorker |
getWorker(int parallelism) |
public static Reactor getReactor(ManagerProvider provider, ReactorType type) throws ClientConnectionException
Reactor based on ManagerProvider availability and
type provided.provider - Provides ability to get SSL context.type - ReactorType which will be created.NioReactor reactor when provider is null or SSLReactor.ClientConnectionException - when unexpected type value is provided or issue with constucting selector.public static ResponseWorker getWorker(int parallelism)
parallelism - the parallelism level using for event processing.ResponseWorker.Copyright © 2018. All Rights Reserved.