pivot.web
Interface QueryListener<V>


public interface QueryListener<V>

Defines event listener methods that pertain to queries. Developers register for such events by adding themselves to a query's list of "query listeners" (see Query.getQueryListeners()).

Note that, like task listeners, query listeners will be notified on the query's worker thread, not the thread that executed the query.

Author:
tvolkert

Method Summary
 void connected(Query<V> query)
          Called when a query has connected to the server but the request has not yet been sent.
 void failed(Query<V> query)
          Called when an error has occurred
 void requestSent(Query<V> query)
          Called when the request has been sent to the server but the response has not yet been received.
 void responseReceived(Query<V> query)
          Called when a response has been received from the server.
 

Method Detail

connected

void connected(Query<V> query)
Called when a query has connected to the server but the request has not yet been sent.

Parameters:
query -

requestSent

void requestSent(Query<V> query)
Called when the request has been sent to the server but the response has not yet been received.

Parameters:
query -

responseReceived

void responseReceived(Query<V> query)
Called when a response has been received from the server.

Parameters:
query -

failed

void failed(Query<V> query)
Called when an error has occurred

Parameters:
query -