- All Implemented Interfaces:
- java.io.Serializable
public class GarbageCollectionEvent
extends AWTEvent
An event which can be posted onto the event queue by an application
to trigger garbage-collection. If the event is posted onto the event
queue as the last action in an actionPerformed() method (e.g. after
a menu option or button is invoked), the garbage collection will
take place after the actionPerformed() method has
returned. This is a useful but optional way of limiting the growth
of the heap without causing noticeable delays.
- See Also:
- Serialized Form