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)
Result
setException
in interface Result<T>
exception
- the exception to setfalse
if the operation was already completed, true
otherwisepublic boolean setCancelled()
Result
setCancelled
in interface Result<T>
false
if the operation was already completed, true
otherwisepublic boolean setResult(T result)
Result
protected abstract O translate(T input) throws IOException
IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.