public class DefaultChannelCapacity
extends java.lang.Object
[ Introduction to this package. ]
Modifier and Type | Field | Description |
---|---|---|
static int |
INITIAL_DEFAULT_CAPACITY |
The initial value of the default capacity is 1024
|
Constructor | Description |
---|---|
DefaultChannelCapacity() |
Modifier and Type | Method | Description |
---|---|---|
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)
java.lang.IllegalArgumentException
- if capacity less or equal to zeropublic static int get()
INITIAL_DEFAULT_CAPACITY
INITIAL_DEFAULT_CAPACITY