org.apache.java.recycle.pool
Class WorkerContainer

java.lang.Object
  |
  +--org.apache.java.recycle.pool.WorkerContainer

class WorkerContainer
extends java.lang.Object
implements RecycleBin

This class implements the container that is used to store the recycled threads.

Version:
$Revision: 1.3 $ $Date: 1999/06/24 00:50:53 $

Field Summary
private  int capacity
           
private  RecycleBin container
           
private  java.lang.ThreadGroup group
           
private  int level
           
 
Constructor Summary
protected WorkerContainer(RecycleBin container, java.lang.ThreadGroup group, int capacity)
           
 
Method Summary
 Recyclable getRecyclable()
           
 int getSize()
           
 void recycle(Recyclable worker)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

container

private RecycleBin container

group

private java.lang.ThreadGroup group

capacity

private int capacity

level

private int level
Constructor Detail

WorkerContainer

protected WorkerContainer(RecycleBin container,
                          java.lang.ThreadGroup group,
                          int capacity)
Method Detail

getRecyclable

public Recyclable getRecyclable()
Specified by:
getRecyclable in interface RecycleBin

recycle

public void recycle(Recyclable worker)
Specified by:
recycle in interface RecycleBin

getSize

public int getSize()
Specified by:
getSize in interface RecycleBin