com.avaje.ebean
Interface FutureIds<T>
- All Superinterfaces:
- Future<List<Object>>
-
public interface FutureIds<T>
- extends Future<List<Object>>
-
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
Method Summary |
List<Object> |
getPartialIds()
Return the list of Id's which could be partially populated. |
Query<T> |
getQuery()
Returns the original query used to fetch the Id's. |
Methods inherited from interface java.util.concurrent.Future |
cancel, get, get, isCancelled, isDone |
getQuery
Query<T> getQuery()
-
Returns the original query used to fetch the Id's.
-
-
getPartialIds
List<Object> getPartialIds()
-
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 Future.get()
method instead of this one.
-
-
Copyright © 2010. All Rights Reserved.