com.genesyslab.omsdk.qil
Interface QILQueryAsyncResult


public interface QILQueryAsyncResult

Synchronizes with the asynchronous QILQueue#asyncGetInteractionsByQuery() method of the QILQueue interface. Use this interface to test whether the associated operation is complete, regardless of the result of the operation. Test whether the operation is complete by calling the isCompleted() method, or wait for the operation to complete by calling the waitCompleted() method. Once the operation is complete, you can get the IDs of retrieved interactions by calling the getInteractionList() method.

Since:
7.2.001.00
See Also:
QILQueue

Method Summary
 QILInteractionList getInteractionList()
          Returns the IDs of the retrieved interactions.
 boolean isCompleted()
          Indicates whether the associated operation is completed, regardless of the result.
 void waitCompleted()
          Waits for the associated operation to complete.
 

Method Detail

getInteractionList

public QILInteractionList getInteractionList()
                                      throws QILRequestFailedException
Returns the IDs of the retrieved interactions.
Note: This method does not wait for the request to complete. Before you call this method, check that the associated request is complete.

Returns:
interaction IDs; null if the request is not complete.
Throws:
QILRequestFailedException - exception thrown if the request failed. To get specific reasons for this error, see the subclasses of QILRequestFailedException.
See Also:
QILMaxNumberOfSnapshotsException, QILNoInteractionFromIxnServer

isCompleted

public boolean isCompleted()
Indicates whether the associated operation is completed, regardless of the result.

Returns:
true if the request is completed.

waitCompleted

public void waitCompleted()
                   throws java.lang.InterruptedException
Waits for the associated operation to complete.

Throws:
java.lang.InterruptedException - exception thrown if the request was interrupted.