Trees | Indices | Help |
|
---|
|
Callback servant used to wait until a HandlePrx would return non-null on getReponse. The server will notify of completion to prevent constantly polling on getResponse. Subclasses can override methods for handling based on the completion status. Example usage: cb = CmdCallbackI(client, handle) response = None while (response is None): response = cb.block(500) # or response = cb.loop(5, 500)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Returns possibly null Response value. If null, then neither has the remote server nor the local poll method called finish with non-null values. |
Returns possibly null Status value. If null, then neither has the remote server nor the local poll method called finish with non-null values. |
Returns whether Status::CANCELLED is contained in the flags variable of the Status instance. If no Status is available, a ClientError will be thrown. |
Returns whether Status::FAILURE is contained in the flags variable of the Status instance. If no Status is available, a ClientError will be thrown. |
Calls block(long) "loops" number of times with the "ms" argument. This means the total wait time for the delete to occur is: loops X ms. Sensible values might be 10 loops for 500 ms, or 5 seconds. @param loops Number of times to call block(long) @param ms Number of milliseconds to pass to block(long @throws omero.LockTimeout if block(long) does not return a non-null value after loops calls. |
Blocks for the given number of milliseconds unless finished(Response, Status, Current) has been called in which case it returns immediately with true. If false is returned, then the timeout was reached. |
Calls HandlePrx#getResponse in order to check for a non-null value. If so, {@link Handle#getStatus} is also called, and the two non-null values are passed to finished(Response, Status, Current). This should typically not be used. Instead, favor the use of block and loop. |
Called periodically by the server to signal that processing is moving forward. Default implementation does nothing. |
Method intended to be overridden by subclasses. Default logic does nothing. |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Sep 23 15:04:50 2014 | http://epydoc.sourceforge.net |