|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--one.world.core.Domain
|
+--one.world.core.ConcurrencyDomain
Implementation of a concurrency domain. A concurrency domain provides an animator for an environment. It is associated with an environment when the environment is created and cannot be changed afterwards. The ID of a concurrency domain is the same ID as the ID of the corresponding environment.
Animator,
Environment, Serialized Form| Method Summary | |
void |
animate(boolean singleThreaded,
boolean isRoot)
Animate this concurrency domain. |
int |
getThreadNumber()
Get the current number of threads for this concurrency domain's animator. |
boolean |
isConcurrent()
Determine whether this concurrency domain's animator is concurrent, that is, if it can use more than one thread. |
void |
terminate()
Terminate this concurrency domain. |
String |
toString()
Return a string representation of this concurrency domain. |
| Methods inherited from class one.world.core.Domain |
equals, getConcurrencyDomain, getId, getProtectionDomain, hashCode, isActive, isWrapped, unwrap |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public final void animate(boolean singleThreaded,
boolean isRoot)
Invocations of this method must be synchronized externally.
singleThreaded - Flag for whether the newly created animator
should be single-threaded.isRoot - Flag for whether this is the root
environment's main concurrency domain.SecurityException - Signals that the caller does not have
permission to manage environments.public final void terminate()
Invocations of this method must be synchronized externally.
SecurityException - Signals that the caller does not have permission
to manage environments.public final boolean isConcurrent()
true if this concurrency domain's
animator is concurrent.IllegalStateException - Signals that this concurrency domain is not active.Animator.isConcurrent()public final int getThreadNumber()
IllegalStateException - Signals that this concurrency domain is not active.Animator.getThreadNumber()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||