| Modifier | Constructor and Description |
|---|---|
protected |
TranslatingResult(Result<O> output) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
setCancelled()
Acknowledge the cancellation of this operation.
|
boolean |
setException(IOException exception)
Set the exception for this operation.
|
boolean |
setResult(T result)
Set the result for this operation.
|
protected abstract O |
translate(T input) |
public boolean setException(IOException exception)
ResultsetException in interface Result<T>exception - the exception to setfalse if the operation was already completed, true otherwisepublic boolean setCancelled()
ResultsetCancelled in interface Result<T>false if the operation was already completed, true otherwisepublic boolean setResult(T result)
Resultprotected abstract O translate(T input) throws IOException
IOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.