public class DefaultChannelCapacity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_DEFAULT_CAPACITY
The initial value of the default capacity is 1024
|
Constructor and Description |
---|
DefaultChannelCapacity() |
Modifier and Type | Method and 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