Javolution 6.0.0 java
|
Classes | |
enum | Limit |
Public Member Functions | |
boolean | value () default true |
Limit | limit () default Limit.CONSTANT |
String | comment () default "" |
Indicates if an element has a bounded
worst-case execution time. The limit behavior of the execution time with the input size may be specified (if no limit specified the worst case execution time is assumed to be constant).
[code] public class Equalities { @Realtime(limit = UNKNOWN) public static final Equality<Object> STANDARD = new StandardComparatorImpl<Object>();
@Realtime(limit = CONSTANT) public static final Equality<Object> IDENTITY = new IdentityComparatorImpl<Object>();
@Realtime(limit = LINEAR) public static final Equality<Object> ARRAY = new ArrayComparatorImpl();
@Realtime(limit = LINEAR) public static final Equality<CharSequence> LEXICAL = new LexicalComparatorImpl(); }[/code]
Analysis tools / compilers may produce warnings if program elements use or override elements with incompatible real-time characteristics.
Note: For multi-cores systems, if a real-time element is Parallelizable but not mutex-free, response time even for high priority threads may be unbounded due to priority inversion. This is no longer the case when running on real-time VMs due to their support for priority inheritance.
Definition at line 59 of file Realtime.java.
String javolution.lang.Realtime.comment | ( | ) |
Provides additional information (default
).
Limit javolution.lang.Realtime.limit | ( | ) |
Returns the limit behavior for the worst-case execution time (default Limit#CONSTANT).
boolean javolution.lang.Realtime.value | ( | ) |
Indicates if this element has a bounded worst-case execution time (default
).