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 INITIAL_DEFAULT_CAPACITY
          The initial value of the default capacity is 1024
 
构造方法摘要
DefaultChannelCapacity()
           
 
方法摘要
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.