com.avaje.ebean.FutureIds Maven / Gradle / Ivy
package com.avaje.ebean;
import java.util.List;
import java.util.concurrent.Future;
/**
* FutureIds represents the result of a background query execution for the Id's.
*
* It extends the java.util.concurrent.Future with the ability to get the Id's
* while the query is still executing in the background.
*
*
* @author rbygrave
*/
public interface FutureIds extends Future> {
/**
* Returns the original query used to fetch the Id's.
*/
Query getQuery();
/**
* Return the list of Id's which could be partially populated.
*
* That is the query getting the id's could still be running and adding id's
* to this list.
*
*
* To get the list of Id's ensuring the query has finished use the
* {@link Future#get()} method instead of this one.
*
*/
List