public interface AsyncResult
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
If not completed, cancels the request.
|
Communicator |
getCommunicator()
Returns the communicator that sent the invocation.
|
Connection |
getConnection()
Returns the connection that was used to call the
begin_ method, or nil
if this AsyncResult object was not obtained via an asynchronous connection invocation
(such as begin_flushBatchRequests). |
java.lang.String |
getOperation()
Returns the name of the operation.
|
ObjectPrx |
getProxy()
Returns the proxy that was used to call the
begin_ method, or nil
if this AsyncResult object was not obtained via an asynchronous proxy invocation. |
boolean |
isCompleted()
Indicates whether the result of an invocation is available.
|
boolean |
isSent()
When you call the
begin_ method, the Ice run time attempts to
write the corresponding request to the client-side transport. |
boolean |
sentSynchronously()
This method returns true if a request was written to the client-side
transport without first being queued.
|
void |
throwLocalException()
If the invocation failed with a local exception, throws the local exception.
|
void |
waitForCompleted()
Blocks the caller until the result of the invocation is available.
|
void |
waitForSent()
Blocks the caller until the request has been written to the client-side transport.
|
void cancel()
cancel prevents a queued request from
being sent or ignores a reply if the request has already
been sent.Communicator getCommunicator()
Connection getConnection()
begin_ method, or nil
if this AsyncResult object was not obtained via an asynchronous connection invocation
(such as begin_flushBatchRequests).ObjectPrx getProxy()
begin_ method, or nil
if this AsyncResult object was not obtained via an asynchronous proxy invocation.boolean isCompleted()
end_
method will not block. The method returns false if the result is not yet available.void waitForCompleted()
boolean isSent()
begin_ method, the Ice run time attempts to
write the corresponding request to the client-side transport. If the
transport cannot accept the request, the Ice run time queues the request
for later transmission. This method returns true if, at the time it is called,
the request has been written to the local transport (whether it was initially
queued or not). Otherwise, if the request is still queued, this method returns
false.void waitForSent()
void throwLocalException()
boolean sentSynchronously()
java.lang.String getOperation()