|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectEDU.oswego.cs.dl.util.concurrent.DefaultChannelCapacity
public class DefaultChannelCapacity
A utility class to set the default capacity of BoundedChannel implementations that otherwise require a capacity argument
[ Introduction to this package. ] | Field Summary | |
|---|---|
static int |
INITIAL_DEFAULT_CAPACITY
The initial value of the default capacity is 1024 |
| Constructor Summary | |
|---|---|
DefaultChannelCapacity()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INITIAL_DEFAULT_CAPACITY
| Constructor Detail |
|---|
public DefaultChannelCapacity()
| Method Detail |
|---|
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||