FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |
context(string name, boolean receivesInput=false);By default, contexts are not public. A public context receives all events sent to the default channel. All non-public contexts will only receive events on channels to which a monitor instance explicitly subscribes.
send Event() to ctx;Code can be spawned to a context with:
spawn action() to ctx;Attempting to send or spawn to a default-initialized context reference will throw an exception.
Action summary | |
---|---|
context | static current() Get a context object that is a reference to the current context. |
integer |
getId() Get the unique identifier of this context. |
string |
getName() Get the name of this context. |
integer |
hash() Get an integer hash representation of the underlying object. |
integer |
iqSize() Get the size of the input queue. |
boolean |
isPublic() Check whether the context is public. |
string |
toString() Convert this context to a string. |
Action detail |
---|
context static current()Get a context object that is a reference to the current context.
integer getId()Get the unique identifier of this context.
string getName()Get the name of this context.
integer hash()Get an integer hash representation of the underlying object.
integer iqSize()Get the size of the input queue.
boolean isPublic()Check whether the context is public.
string toString()Convert this context to a string.
FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | FIELD | ACTION | DETAIL: IMPORT | CONSTANT | FIELD | ACTION |