public interface RootDObjectManager extends DObjectManager, RunQueue, Executor, Interval.Factory
RunQueue.AsExecutor| Modifier and Type | Method and Description |
|---|---|
void |
destroyObject(int oid)
Requests that the specified object be destroyed.
|
DObject |
getObject(int oid)
Looks up and returns the requested distributed object in the dobj table, returning null if
no object exists with that oid.
|
Interval |
newInterval(Runnable action)
Creates an
Interval that runs the supplied runnable. |
<T extends DObject> |
registerObject(T object)
Registers a distributed object instance of the supplied class with the system and assigns it
an oid.
|
isManager, postEvent, removedLastSubscriber, subscribeToObject, unsubscribeFromObjectisDispatchThread, isRunning, postRunnableDObject getObject(int oid)
<T extends DObject> T registerObject(T object)
void destroyObject(int oid)
oid - The object id of the distributed object to be destroyed.Interval newInterval(Runnable action)
Interval that runs the supplied runnable. If the root omgr is shutdown
before the interval expires (or if the interval is scheduled to repeat), it will be
automatically cancelled. This makes it easy to schedule fire-and-forget intervals:
_omgr.newInterval(someRunnable).schedule(500); // one shot Interval ival = _omgr.newInterval(someRunnable).schedule(500, true); // repeater
newInterval in interface Interval.FactoryCopyright © 2015. All rights reserved.