javax.realtime
Class GarbageCollector

java.lang.Object
  |
  +--javax.realtime.GarbageCollector

public abstract class GarbageCollector
extends java.lang.Object

The system shall provide dynamic and 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 implementations.


Constructor Summary
GarbageCollector()
           
 
Method Summary
abstract  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 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 preeempt 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 this if applicable. May return 0 if there is no collector available