All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.commons.api.query.ContinuousQuery Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons.api.query;

import java.util.List;
import java.util.Map;

/**
 * @since 15.0
 */
public interface ContinuousQuery {

   /**
    * Add a listener for a continuous query.
    *
    * @param queryString the query
    * @param listener    the listener
    */
    void addContinuousQueryListener(String queryString, ContinuousQueryListener listener);

   /**
    * Add a listener for a continuous query.
    *
    * @param queryString     the query
    * @param namedParameters the query parameters
    * @param listener        the listener
    */
    void addContinuousQueryListener(String queryString, Map namedParameters, ContinuousQueryListener listener);

   /**
    * Add a listener for a continuous query.
    *
    * @param query    the query object
    * @param listener the listener
    */
    void addContinuousQueryListener(Query query, ContinuousQueryListener listener);

   /**
    * Remove a continuous query listener.
    *
    * @param listener the listener to remove
    */
   void removeContinuousQueryListener(ContinuousQueryListener listener);

   /**
    * Get the list of currently registered listeners.
    */
   List> getListeners();

   /**
    * Unregisters all listeners.
    */
   void removeAllListeners();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy