jrun.jms.core
Interface Disposable
- All Known Implementing Classes:
- MessageImpl
- public interface Disposable
Disposable objects can be made available forgarbage collection. These
types of objects are usually housed by a Container and the
Container is usually GarbageCollectable. The GarbageCollector
is responsible for scheduling garbage collection activity.
- Version:
- $Revision: 1.1 $ $Date: 2001/05/24 16:39:40 $
- Author:
- Jim Alateras
|
Method Summary |
boolean |
canDispose()
Check whether we can dispose of this object. |
void |
dispose()
Unconditionally dispose of this object or do whatever you can to make
it available for garbage collection |
boolean |
tryDisposing()
Check to see if this object can be disposed. |
tryDisposing
public boolean tryDisposing()
- Check to see if this object can be disposed. If so do whatever you can
to make it available for garbage collection.
- Returns:
- boolean - true if object was disposed
canDispose
public boolean canDispose()
- Check whether we can dispose of this object. This does not actually
have any side effects. Note that the
dispose() method does a
check before disposing of the object
- Returns:
- boolean - true if we can dispose of it
dispose
public void dispose()
- Unconditionally dispose of this object or do whatever you can to make
it available for garbage collection
Copyright � 2002 Macromedia Corporation. All Rights Reserved.