public class DefaultChannelCapacity extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
INITIAL_DEFAULT_CAPACITY
The initial value of the default capacity is 1024
|
| 构造器和说明 |
|---|
DefaultChannelCapacity() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
get()
Get the default capacity used in
default (no-argument) constructor for BoundedChannels
that otherwise require a capacity argument.
|
static void |
set(int capacity)
Set the default capacity used in
default (no-argument) constructor for BoundedChannels
that otherwise require a capacity argument.
|
public static final int INITIAL_DEFAULT_CAPACITY
public static void set(int capacity)
IllegalArgumentException - if capacity less or equal to zeropublic static int get()
INITIAL_DEFAULT_CAPACITYINITIAL_DEFAULT_CAPACITYCopyright © 2024. All rights reserved.