Methods Summary |
---|
public abstract T[] | getEnumValuesInOrder(java.lang.Class clazz)Gets a shared array of the enum constants of a given class in
declaration (ordinal) order. It is not safe to hand out this
array to any user code.
|
public static org.apache.harmony.kernel.vm.LangAccess | getInstance()Gets the unique instance of this class. This is only allowed in
very limited situations.
/*
* Only code on the bootclasspath is allowed to get at the
* instance.
*/
ClassLoader calling = VMStack.getCallingClassLoader2();
ClassLoader current = LangAccess.class.getClassLoader();
if ((calling != null) && (calling != current)) {
throw new SecurityException("LangAccess access denied");
}
if (theInstance == null) {
throw new UnsupportedOperationException("not yet initialized");
}
return theInstance;
|
public abstract void | parkFor(long nanos)Parks the current thread for a particular number of nanoseconds, or
indefinitely. If not indefinitely, this method unparks the thread
after the given number of nanoseconds if no other thread unparks it
first. If the thread has been "preemptively unparked," this method
cancels that unparking and returns immediately. This method may
also return spuriously (that is, without the thread being told to
unpark and without the indicated amount of time elapsing).
See {@link java.util.concurrent.locks.LockSupport} for more
in-depth information of the behavior of this method.
|
public abstract void | parkUntil(long time)Parks the current thread until the specified system time. This
method attempts to unpark the current thread immediately after
System.currentTimeMillis() reaches the specified
value, if no other thread unparks it first. If the thread has
been "preemptively unparked," this method cancels that
unparking and returns immediately. This method may also return
spuriously (that is, without the thread being told to unpark
and without the indicated amount of time elapsing).
See {@link java.util.concurrent.locks.LockSupport} for more
in-depth information of the behavior of this method.
|
public static void | setInstance(org.apache.harmony.kernel.vm.LangAccess instance)Sets the unique instance of this class. This may only be done once.
if (theInstance != null) {
throw new UnsupportedOperationException("already initialized");
}
theInstance = instance;
|
public abstract void | unpark(java.lang.Thread thread)Unparks the given thread. This unblocks the thread it if it was
previously parked, or indicates that the thread is "preemptively
unparked" if it wasn't already parked. The latter means that the
next time the thread is told to park, it will merely clear its
latent park bit and carry on without blocking.
See {@link java.util.concurrent.locks.LockSupport} for more
in-depth information of the behavior of this method.
|