Package io.ebeaninternal.server.query
Class QueryFutureRowCount<T>
- java.lang.Object
-
- io.ebeaninternal.server.query.QueryFutureRowCount<T>
-
- All Implemented Interfaces:
FutureRowCount<T>
,Future<Integer>
public class QueryFutureRowCount<T> extends Object implements FutureRowCount<T>
Future implementation for the row count query.
-
-
Constructor Summary
Constructors Constructor Description QueryFutureRowCount(CallableQueryCount<T> call)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
T
get()
T
get(long timeout, TimeUnit unit)
FutureTask<Integer>
getFutureTask()
Transaction
getTransaction()
boolean
isCancelled()
boolean
isDone()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDone
-
-
-
-
Constructor Detail
-
QueryFutureRowCount
public QueryFutureRowCount(CallableQueryCount<T> call)
-
-
Method Detail
-
getFutureTask
public FutureTask<Integer> getFutureTask()
-
getTransaction
public Transaction getTransaction()
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
-
get
public T get() throws InterruptedException, ExecutionException
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- Specified by:
get
in interfaceFuture<T>
- Throws:
InterruptedException
ExecutionException
TimeoutException
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceFuture<T>
-
-