public abstract class ScanTask<T> extends Object implements RunnableFuture<T>
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
interruptFlag |
protected ArrayBlockingQueue<Object> |
resultQueue |
protected AtomicReference<ScanRunState> |
runState |
protected TabletServer |
server |
protected AtomicInteger |
state |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResult(Object o) |
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
ScanRunState |
getScanRunState() |
boolean |
isCancelled() |
boolean |
isDone() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprotected final TabletServer server
protected AtomicBoolean interruptFlag
protected ArrayBlockingQueue<Object> resultQueue
protected AtomicInteger state
protected AtomicReference<ScanRunState> runState
protected void addResult(Object o)
public boolean cancel(boolean mayInterruptIfRunning)
public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic boolean isCancelled()
isCancelled in interface Future<T>public ScanRunState getScanRunState()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.