JADE v6.1

com.dautelle.realtime
Interface Realtime

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
RealtimeNumber, RealtimeObject

public interface Realtime
extends java.io.Serializable

This interface identifies classes with higher performance and higher predictability when their methods are executed within a PoolContext.

Classes implementing this interface can be allocated on the stack and do not generate garbage.

Version:
6.0, February 15, 2004
Author:
Jean-Marie Dautelle

Method Summary
 java.lang.Object export()
          Exports this object out of the current pool context.
 java.lang.Object toHeap()
          Moves this object to the heap.
 

Method Detail

export

public java.lang.Object export()
Exports this object out of the current pool context. Realtime members are exported as well (recursion). This method affects only objects belonging to the current pool context. To avoid pool depletion, a "free" object from the outer pool is moved to replace the object being exported.

Returns:
this

toHeap

public java.lang.Object toHeap()
Moves this object to the heap. Realtime members are moved to the heap as well (recursion). This method affects only objects belonging to a pool context (current or not).

Returns:
this

JADE v6.1

Copyright © 2004 Jean-Marie Dautelle.