javax.realtime
Class GarbageCollector

java.lang.Object
  |
  +--javax.realtime.GarbageCollector
Direct Known Subclasses:
BDWGarbageCollector, CopyingGarbageCollector, MarkSweepGarbageCollector, NoGarbageCollector

public abstract class GarbageCollector
extends java.lang.Object

The system shall provide dynamic ans static information characterizing the temporal behavior and imposed overhead of any garbage collection algorithm provided by the system. This information shall be made available to applications via methods on subclasses of GarbageCollector. Implementations are allowed to provide any set of methods in subclasses as long as the temporal behavior and overhead are sufficiently categorized. The implementations are also required to fully document the subclasses. In addition, the method(s) in GarbageCollector shall be made available by all implementation.


Constructor Summary
GarbageCollector()
           
 
Method Summary
abstract  javax.realtime.RelativeTime getPreemptionLatency()
          Preemption latency is a measure of the maximum time a RealtimeThread may have to wait for the collector to reach a preemption-safe point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GarbageCollector

public GarbageCollector()
Method Detail

getPreemptionLatency

public abstract javax.realtime.RelativeTime getPreemptionLatency()
Preemption latency is a measure of the maximum time a RealtimeThread may have to wait for the collector to reach a preemption-safe point. Instances of RealtimeThread are allowed to preempt the garbage collector (instances of NoHeapRealtimeThread preempt immediately but instances of RealtimeThread must wait until the collector reaches a preemption-safe point).

Returns:
The preempting latency of the garbage collection algorithm represented by this if applicable. May return zero, if there is no collector available.