org.dbunit.util.concurrent
Class DefaultChannelCapacity
java.lang.Object
org.dbunit.util.concurrent.DefaultChannelCapacity
public class DefaultChannelCapacity
- extends Object
A utility class to set the default capacity of
BoundedChannel
implementations that otherwise require a capacity argument
- Since:
- ? (pre 2.1)
- Version:
- $Revision: 766 $ $Date: 2008-08-01 13:05:20 +0200 (Fri, 01 Aug 2008) $
- Author:
- Doug Lea, Last changed by: $Author: gommma $
- See Also:
[ Introduction to this package. ]
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 |
INITIAL_DEFAULT_CAPACITY
public static final int INITIAL_DEFAULT_CAPACITY
- The initial value of the default capacity is 1024
- See Also:
- Constant Field Values
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.
- Throws:
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
- See Also:
INITIAL_DEFAULT_CAPACITY
Copyright © 2002-2012. All Rights Reserved.