|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.runtime.values.Value
orc.runtime.sites.Site
orc.runtime.sites.java.MethodProxy
public class MethodProxy
Allow a Java method to be used as an Orc site.
MAGIC: pausible methods are run in a Kilim task. We actually go to some lengths to avoid running non-pausable methods in a Kilim task to ensure that if this site is wrapped by ThreadSite, the method will actually run in its own thread and not in the Kilim thread.
| Field Summary |
|---|
| Fields inherited from class orc.runtime.values.Value |
|---|
futureNotReady |
| Constructor Summary | |
|---|---|
MethodProxy(ObjectProxy.Delegate delegate)
|
|
| Method Summary | |
|---|---|
void |
callSite(Args args,
Token caller)
Must be implemented by subclasses to implement the site behavior |
| Methods inherited from class orc.runtime.sites.Site |
|---|
accept, createCall |
| Methods inherited from class orc.runtime.values.Value |
|---|
forceArg, forceCall, isNone, isSome, signal, untag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodProxy(ObjectProxy.Delegate delegate)
| Method Detail |
|---|
public void callSite(Args args,
Token caller)
throws TokenException
Site
callSite in class Siteargs - list of argument valuescaller - where the result should be sent
TokenException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||