org.logicalcobwebs.concurrent

Class 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
See Also:
[ Introduction to this package. ]

Field Summary

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

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.

Field Details

INITIAL_DEFAULT_CAPACITY

public static final int INITIAL_DEFAULT_CAPACITY
The initial value of the default capacity is 1024 *
Field Value:
1024

Method Details

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

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.