SUMMARY: CONSTR | METHOD | DETAIL: CONSTR | METHOD |
Licensed under the Academic Free License version 2.1, as specified in the License.txt file included in this software package, or at OpenSource.org.
Unless otherwise noted, $self
is the object instance variable.
Constructor Summary |
---|
new($proxied_class, $tqd, $id, $isa, $methods, $timeout, $tid)
Creates a threads::shared hash to contain the proxy information, so it can be readily passed between threads |
Method Summary |
---|
can($method)
Overload UNIVERSAL::can() to test the available methods of the proxied object |
get_pending_results()
Return results of a pending method/closure request |
get_proxied_class()
Return proxied class |
get_timeout()
Return current TQD timeout |
isa($class)
Overload UNIVERSAL::isa() to test the class hierarchy of the proxied object |
join()
Wait for the proxied object's apartment thread to exit |
redeem($class, $obj)
TQQ redeem() override |
set_async($async)
Set async method for next call in current thread |
set_timeout($timeout)
Set TQD timeout |
stop()
Stop the proxied object's apartment thread |
ta_is_simplex($method)
Test if the specified method is exported as simplex |
ta_is_urgent($method)
Test if the specified method is exported as urgent |
tac_debug($level)
Set debug level |
Constructor Details |
---|
new($proxied_class, $tqd, $id, $isa, $methods, $timeout, $tid)
$proxied_class
- the class of the object to be proxied
$tqd
- TQD communications channel to proxied object
$id
- unique object ID for proxied object
$isa
- arrayref of object's class hierarchy
$methods
- hashref mapping exported method names to behavior flags
$timeout
- TQD timeout seconds
$tid
- thread ID of the apartment thread for the proxied object
Method Details |
---|
can($method)
$method
- method to check if implemented by the proxied object
get_pending_results()
get_proxied_class()
get_timeout()
isa($class)
$class
- class to check if implemented by the proxied object
join()
redeem($class, $obj)
$class
- our TAC class
$obj
- the object to be redeem()ed
set_async($async)
$async
- boolean value to set $async_method flag
set_timeout($timeout)
$timeout
- max. number of seconds to wait for TQD responses.
stop()
ta_is_simplex($method)
$method
- method to test for simplex behavior
ta_is_urgent($method)
$method
- method to test for urgent behavior
tac_debug($level)
$level
- debug level. zero or undef turns off debugging; all other values enable debugging