Runtime.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | NettyRuntime.AvailableProcessorsHolder
Holder class for available processors to enable testing. |
| Modifier and Type | Field and Description |
|---|---|
| private static final NettyRuntime. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the configured number of available processorsGet the configured number of available processors. |
| public static void | setAvailableProcessors(final int
the number of available processors availableProcessors)Set the number of available processors. |
| holder | back to summary |
|---|---|
| private static final NettyRuntime. | |
| NettyRuntime | back to summary |
|---|---|
| private NettyRuntime() No public constructor to prevent instances from being created. | |
| availableProcessors | back to summary |
|---|---|
| public static int availableProcessors() Get the configured number of available processors. The default is
| |
| setAvailableProcessors | back to summary |
|---|---|
| public static void setAvailableProcessors(final int availableProcessors) Set the number of available processors.
| |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized int | Returns: the configured number of available processorsGet the configured number of available processors. |
| pack-priv synchronized void | setAvailableProcessors(final int
the number of available processors availableProcessors)Set the number of available processors. |
| availableProcessors | back to summary |
|---|---|
| private int availableProcessors | |
| AvailableProcessorsHolder | back to summary |
|---|---|
| pack-priv AvailableProcessorsHolder() | |
| availableProcessors | back to summary |
|---|---|
| pack-priv synchronized int availableProcessors() Get the configured number of available processors. The default is
| |
| setAvailableProcessors | back to summary |
|---|---|
| pack-priv synchronized void setAvailableProcessors(final int availableProcessors) Set the number of available processors.
| |