/* * Javolution - Java(TM) Solution for Real-Time and Embedded Systems * Copyright (C) 2007 - Javolution (http://javolution.org/) * All rights reserved. * * Permission to use, copy, modify, and distribute this software is * freely granted, provided that this notice is preserved. */ package javolution.lang; import javolution.text.Text; /** *
This interface identifies RTSJ safe * classes with predictable response time and supporting custom {@link * javolution.context.AllocatorContext allocation} policies (e.g. * {@link javolution.context.StackContext "stack"} allocations).
* * Instances of this class are typically created through an
* {@link javolution.context.ObjectFactory ObjectFactory}. For example:
* [code]
* public final class Complex implements Realtime, ValueType {
* private double _real;
* private double _imaginary;
* private static ObjectFactory
*
* It should be noted that classes with no static reference field
* or with only static final {@link Immutable immutable} fields are
* always RTSJ safe. Such classes may implement this interface
* and be used while running in scoped memory (RTSJ) or non-heap
* {@link javolution.context.AllocatorContext allocators} (Javolution).toString
except that the returned value
* can be {@link javolution.context.StackContext "stack"} allocated and
* supports fast concatenation).
*
* @return this object's textual representation.
*/
Text toText();
}