| |
- Timeout
class Timeout |
|
Timeout is nearly identical to the C++ Timeout class (acsQoS module).
However, it does not work properly at the present time, because there is
not proper support from the python orb (OmniORB). For example, setting a
timeout with the Timeout object will (re)set the timeout of the ORB, which
also affects method calls in other threads (undesirable side effect). For
this reason, it is currently recommanded to use (re)setObjectTimeout
which sets a timeout that affects calls to just that one CORBA object. |
|
Methods defined here:
- __del__(self)
- The destructor for the Timeout object.
- __init__(self, timeout)
- The constructor for the Timeout object, which sets the timeout.
Parameters:
- timeout the timeout in milliseconds (a long).
Returns: Nothing
Raises: Nothing
- get(self)
- Returns the timeout value (expressed in milliseconds).
Parameters: None
Returns: timeout, the timeout value expressed in milliseconds.
Raises: Nothing
- reset(self)
- Resets the timeout (presently forces it to zero).
It should work in such a way that it resets the timeout
to the previous value, but the orb implementation does
not support functionality to retrieve the previously set timeout.
So it sets timeout to 0 which means no timeout.
Parameters: Nothing
Returns: Nothing
Raises: Nothing
- set(self, timeout=0)
- Sets the timeout value.
Parameters:
- timeout the timeout to be set (a long), expressed in milliseconds.
Returns: Nothing
Raises: Nothing
- sset(self)
- Sets object's timeout
Parameters: Nothing
Returns: Nothing
Raises: Nothing
| |