public class DefaultChannelCapacity extends Object
[ Introduction to this package. ]
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)
IllegalArgumentException
- if capacity less or equal to zeropublic static int get()
INITIAL_DEFAULT_CAPACITY
INITIAL_DEFAULT_CAPACITY
Copyright © 2002–2016. All rights reserved.