org.exolab.jms.gc
Interface GarbageCollectable

All Known Subinterfaces:
DestinationCache, DestinationManager

public interface GarbageCollectable

A object which has a type GarbageCollectable can be visisted by the GarbageCollectionService to dispose of resources.

Version:
$Revision: 1.2 $ $Date: 2005/03/18 03:46:33 $
Author:
Jim Alateras

Method Summary
 void collectGarbage(boolean aggressive)
          Perform any garbage collection on this resource.
 

Method Detail

collectGarbage

public void collectGarbage(boolean aggressive)
Perform any garbage collection on this resource. This will have the effect of releasing system resources. If the 'aggressive' flag is set to true then the garbage collection should do more to release memory related resources since it is called when the application memory is low.
Parameters:
aggressive - true for aggressive garbage collection


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.