R
- public class OperationResult<R> extends Object
Constructor and Description |
---|
OperationResult() |
OperationResult(OperationResultHandler<R> handler) |
Modifier and Type | Method and Description |
---|---|
void |
complete() |
boolean |
complete(long timeout,
TimeUnit t) |
R |
get() |
Exception |
getException() |
R |
getResult() |
boolean |
isComplete() |
boolean |
isSuccess() |
void |
notifyFailure(Exception e) |
void |
notifySuccess(R result) |
public OperationResult()
public OperationResult(OperationResultHandler<R> handler)
public boolean isComplete()
public boolean isSuccess()
public Exception getException()
public R getResult()
public R get()
public void notifySuccess(R result)
public void notifyFailure(Exception e)
public void complete() throws InterruptedException
InterruptedException
public boolean complete(long timeout, TimeUnit t) throws InterruptedException
InterruptedException