| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final NameResolverProvider | |
| pack-priv static final int | DEFAULT_UDP_THREAD_COUNT
Default worker thread count, fallback to available processor (but with a minimum value of 4). |
| pack-priv final LoopResources | |
| pack-priv final AtomicReference | |
| pack-priv static final Logger | |
| pack-priv static final Function | |
| pack-priv static final AtomicReference |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected Mono | Returns: the Mono that represents the end of disposalthe quiet period as described above quietPeriod, Duration the maximum amount of time to wait until the disposal of the underlying
LoopResources regardless if a task was submitted during the quiet period timeout)Dispose underlying resources in a listenable fashion. |
| pack-priv void | |
| pack-priv Mono | |
| pack-priv static <T extends UdpResources> T | |
| public boolean | daemon()
Overrides default reactor. EventLoopGroup should not be shutdown.
|
| public void | dispose()
Overrides default reactor. NOOP implementation by default in order to prevent unintended disposal of
the global UDP resources which has a longer lifecycle than regular LoopResources.
|
| public Mono | disposeLater()
Overrides default reactor. NOOP implementation by default in order to prevent unintended disposal of
the global UDP resources which has a longer lifecycle than regular LoopResources.
|
| public Mono | disposeLater(Duration
the quiet period as described above quietPeriod, Duration the maximum amount of time to wait until the disposal of the underlying
LoopResources regardless if a task was submitted during the quiet period timeout)Overrides default reactor. NOOP implementation by default in order to prevent unintended disposal of
the global UDP resources which has a longer lifecycle than regular LoopResources.
|
| public static UdpResources | |
| protected static UdpResources | Returns: an existing or newUdpResourcesthe eventual new loops, Function<LoopResources, UdpResources> LoopResourcesa onNew, String UdpResources factorya name for resources name)Safely check if existing resource exist and proceed to update/cleanup if new resources references are passed. |
| pack-priv AddressResolverGroup | Returns: an existing or newAddressResolverGroupSafely checks whether a name resolver exists and proceed with a creation if it does not exist. |
| public boolean | isDisposed()
Overrides default reactor. |
| public <CHANNEL extends Channel> CHANNEL | onChannel(Class<CHANNEL>
the channel type channelType, EventLoopGroup the source group)EventLoopGroup to assign a loop fromOverrides default reactor. Channel selection.
|
| public <CHANNEL extends Channel> Class | onChannelClass(Class<CHANNEL>
the channel type channelType, EventLoopGroup the source group)EventLoopGroup to assign a loop fromOverrides default reactor. Channel class selection.
|
| public EventLoopGroup | onClient(boolean
should use native group if current environment supports it useNative)Overrides default reactor. EventLoopGroup creation.
|
| public EventLoopGroup | onServer(boolean
should use native group if current environment supports it useNative)Implements reactor. EventLoopGroup creation,
this is the EventLoopGroup for the child channel.
|
| public EventLoopGroup | onServerSelect(boolean
should use native group if current environment supports it useNative)Overrides default reactor. EventLoopGroup creation,
this is the EventLoopGroup for the acceptor channel.
|
| public static UdpResources | |
| public static UdpResources | Returns: the global UDP resourcesa new loops)LoopResources to replace the currentUpdate event loops resources and return the global UDP resources. |
| public static void | shutdown()
Shutdown the global |
| public static Mono | shutdownLater()
Prepare to shutdown the global |
| public static Mono | shutdownLater(Duration
the quiet period as described above quietPeriod, Duration the maximum amount of time to wait until the disposal of the underlying
LoopResources regardless if a task was submitted during the quiet period timeout)Prepare to shutdown the global |
| DEFAULT_NAME_RESOLVER_PROVIDER | back to summary |
|---|---|
| pack-priv static final NameResolverProvider DEFAULT_NAME_RESOLVER_PROVIDER | |
| DEFAULT_UDP_THREAD_COUNT | back to summary |
|---|---|
| pack-priv static final int DEFAULT_UDP_THREAD_COUNT Default worker thread count, fallback to available processor (but with a minimum value of 4). | |
| defaultLoops | back to summary |
|---|---|
| pack-priv final LoopResources defaultLoops | |
| defaultResolver | back to summary |
|---|---|
| pack-priv final AtomicReference<AddressResolverGroup<?>> defaultResolver | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log | |
| ON_UDP_NEW | back to summary |
|---|---|
| pack-priv static final Function<LoopResources, UdpResources> ON_UDP_NEW | |
| udpResources | back to summary |
|---|---|
| pack-priv static final AtomicReference<UdpResources> udpResources | |
| UdpResources | back to summary |
|---|---|
| protected UdpResources(LoopResources defaultLoops) | |
| _dispose | back to summary |
|---|---|
| protected void _dispose() Dispose underlying resources. | |
| _disposeLater | back to summary |
|---|---|
| protected Mono Dispose underlying resources in a listenable fashion.
It is guaranteed that the disposal of the underlying LoopResources will not happen before
| |
| _disposeResolver | back to summary |
|---|---|
| pack-priv void _disposeResolver() | |
| _disposeResolverLater | back to summary |
|---|---|
| pack-priv Mono | |
| create | back to summary |
|---|---|
| pack-priv static <T extends UdpResources> T create(T previous, LoopResources loops, String name, Function<LoopResources, T> onNew) | |
| daemon | back to summary |
|---|---|
| public boolean daemon() Overrides default reactor. Doc from reactor. return true if
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides default reactor. This has a
| |
| disposeLater | back to summary |
|---|---|
| public Mono Overrides default reactor. This has a
| |
| disposeLater | back to summary |
|---|---|
| public Mono Overrides default reactor. This has a
| |
| get | back to summary |
|---|---|
| public static UdpResources get() Return the global UDP resources for pooling.
| |
| getOrCreate | back to summary |
|---|---|
| protected static UdpResources getOrCreate(LoopResources loops, Function<LoopResources, UdpResources> onNew, String name) Safely check if existing resource exist and proceed to update/cleanup if new resources references are passed.
| |
| getOrCreateDefaultResolver | back to summary |
|---|---|
| pack-priv AddressResolverGroup Safely checks whether a name resolver exists and proceed with a creation if it does not exist.
The name resolver uses as an event loop group the
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Overrides default reactor. Doc from reactor. Optionally return true when the resource or task is disposed. Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
| |
| onChannel | back to summary |
|---|---|
| public <CHANNEL extends Channel> CHANNEL onChannel(Class<CHANNEL> channelType, EventLoopGroup group) Overrides default reactor. Doc from reactor. Callback for a
| |
| onChannelClass | back to summary |
|---|---|
| public <CHANNEL extends Channel> Class Overrides default reactor. Doc from reactor. Callback for a
| |
| onClient | back to summary |
|---|---|
| public EventLoopGroup onClient(boolean useNative) Overrides default reactor. Doc from reactor. Callback for client
| |
| onServer | back to summary |
|---|---|
| public EventLoopGroup onServer(boolean useNative) Implements reactor. Doc from reactor. Callback for server
| |
| onServerSelect | back to summary |
|---|---|
| public EventLoopGroup onServerSelect(boolean useNative) Overrides default reactor. Doc from reactor. Callback for server select
| |
| reset | back to summary |
|---|---|
| public static UdpResources reset() Reset UDP resources to default and return its instance.
| |
| set | back to summary |
|---|---|
| public static UdpResources set(LoopResources loops) Update event loops resources and return the global UDP resources. Note The previous
| |
| shutdown | back to summary |
|---|---|
| public static void shutdown() Shutdown the global | |
| shutdownLater | back to summary |
|---|---|
| public static Mono Prepare to shutdown the global
| |
| shutdownLater | back to summary |
|---|---|
| public static Mono Prepare to shutdown the global
| |