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

com.avaje.ebean.FutureIds Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
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 getPartialIds(); }