Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.emory.mathcs.util.concurrent
Class DefaultChannelCapacity  view DefaultChannelCapacity download DefaultChannelCapacity.java

java.lang.Object
  extended byedu.emory.mathcs.util.concurrent.DefaultChannelCapacity

public class DefaultChannelCapacity
extends java.lang.Object

A utility class to set the default capacity of BoundedChannel implementations that otherwise require a capacity argument


Field Summary
private static int defaultCapacity_
          the current default capacity
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

INITIAL_DEFAULT_CAPACITY

public static final int INITIAL_DEFAULT_CAPACITY
The initial value of the default capacity is 1024

See Also:
Constant Field Values

defaultCapacity_

private static int defaultCapacity_
the current default capacity

Constructor Detail

DefaultChannelCapacity

public DefaultChannelCapacity()
Method Detail

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.


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