EDU.oswego.cs.dl.util.concurrent
public class: DefaultChannelCapacity [javadoc |
source]
java.lang.Object
EDU.oswego.cs.dl.util.concurrent.DefaultChannelCapacity
A utility class to set the default capacity of
BoundedChannel
implementations that otherwise require a capacity argument
Field Summary |
---|
public static final int | INITIAL_DEFAULT_CAPACITY | The initial value of the default capacity is 1024 |
Method from EDU.oswego.cs.dl.util.concurrent.DefaultChannelCapacity Summary: |
---|
get, set |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from EDU.oswego.cs.dl.util.concurrent.DefaultChannelCapacity Detail: |
public static int get() {
return defaultCapacity_.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 |
public static void set(int capacity) {
if (capacity < = 0) throw new IllegalArgumentException();
defaultCapacity_.set(capacity);
}
Set the default capacity used in
default (no-argument) constructor for BoundedChannels
that otherwise require a capacity argument. |