org.logicalcobwebs.concurrent
类 DefaultChannelCapacity
java.lang.Object
org.logicalcobwebs.concurrent.DefaultChannelCapacity
public class DefaultChannelCapacity
- extends Object
A utility class to set the default capacity of
BoundedChannel
implementations that otherwise require a capacity argument
- 另请参见:
[ Introduction to this package. ]
|
方法摘要 |
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. |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_DEFAULT_CAPACITY
public static final int INITIAL_DEFAULT_CAPACITY
- The initial value of the default capacity is 1024
- 另请参见:
- 常量字段值
DefaultChannelCapacity
public DefaultChannelCapacity()
set
public static void set(int capacity)
- Set the default capacity used in
default (no-argument) constructor for BoundedChannels
that otherwise require a capacity argument.
- 抛出:
IllegalArgumentException - if capacity less or equal to zero
get
public static int get()
- Get the default capacity used in
default (no-argument) constructor for BoundedChannels
that otherwise require a capacity argument.
Initial value is
INITIAL_DEFAULT_CAPACITY
- 另请参见:
INITIAL_DEFAULT_CAPACITY
Copyright © 2014. All rights reserved.