public class RecordFuture extends Object implements Future<RecordInfo>
Constructor and Description |
---|
RecordFuture() |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
boolean |
equals(Object obj) |
RecordInfo |
get() |
RecordInfo |
get(long timeout,
TimeUnit unit) |
int |
getRecordFutureId() |
int |
hashCode() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setValue(RecordInfo value) |
public int getRecordFutureId()
public boolean cancel(boolean mayInterruptIfRunning)
cancel
in interface Future<RecordInfo>
public boolean isCancelled()
isCancelled
in interface Future<RecordInfo>
public boolean isDone()
isDone
in interface Future<RecordInfo>
public void setValue(RecordInfo value)
public RecordInfo get() throws InterruptedException, ExecutionException
get
in interface Future<RecordInfo>
InterruptedException
ExecutionException
public RecordInfo get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<RecordInfo>
InterruptedException
ExecutionException
TimeoutException
Copyright © 2016. All rights reserved.