Class QueryListener.Adapter<V>

  • Type Parameters:
    V - The type associated with the query.
    All Implemented Interfaces:
    QueryListener<V>
    Enclosing interface:
    QueryListener<V>

    @Deprecated
    public static class QueryListener.Adapter<V>
    extends java.lang.Object
    implements QueryListener<V>
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    Query listener adapter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Adapter()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void connected​(Query<V> query)
      Deprecated.
      Called when a query has connected to the server but the request has not yet been sent.
      void failed​(Query<V> query)
      Deprecated.
      Called when an error has occurred.
      void requestSent​(Query<V> query)
      Deprecated.
      Called when the request has been sent to the server but the response has not yet been received.
      void responseReceived​(Query<V> query)
      Deprecated.
      Called when a response has been received from the server.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • connected

        public void connected​(Query<V> query)
        Deprecated.
        Description copied from interface: QueryListener
        Called when a query has connected to the server but the request has not yet been sent.
        Specified by:
        connected in interface QueryListener<V>
        Parameters:
        query - The query that has just connected.
      • requestSent

        public void requestSent​(Query<V> query)
        Deprecated.
        Description copied from interface: QueryListener
        Called when the request has been sent to the server but the response has not yet been received.
        Specified by:
        requestSent in interface QueryListener<V>
        Parameters:
        query - The query whose request has been sent.
      • responseReceived

        public void responseReceived​(Query<V> query)
        Deprecated.
        Description copied from interface: QueryListener
        Called when a response has been received from the server.
        Specified by:
        responseReceived in interface QueryListener<V>
        Parameters:
        query - The query whose response has just been received.
      • failed

        public void failed​(Query<V> query)
        Deprecated.
        Description copied from interface: QueryListener
        Called when an error has occurred.
        Specified by:
        failed in interface QueryListener<V>
        Parameters:
        query - The query that has failed.