org.apache.java.recycle
Interface Controller

All Known Implementing Classes:
AdaptiveController, DefaultController, GaussianController, MinMaxController

public abstract interface Controller

This interface should be implemented by those classes willing to control the level of recycle bins.

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

Method Summary
 void down()
          This method is called by a ControlledContainer when some object is removed from the container.
 boolean isThereRoomFor(Recyclable object)
          This method is called to obtain info about the container level status and should return true if the controller grants access for the new object to be stored in the container.
 void up()
          This method is called by a ControlledContainer when some object gets stored in the container.
 

Method Detail

up

public void up()
This method is called by a ControlledContainer when some object gets stored in the container.

down

public void down()
This method is called by a ControlledContainer when some object is removed from the container.

isThereRoomFor

public boolean isThereRoomFor(Recyclable object)
This method is called to obtain info about the container level status and should return true if the controller grants access for the new object to be stored in the container.

It's up to the implementation to determine how to come up with this information.