- java.lang.Object
-
- org.xnio.TranslatingResult<T,O>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTranslatingResult(Result<O> output)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleansetCancelled()Acknowledge the cancellation of this operation.booleansetException(java.io.IOException exception)Set the exception for this operation.booleansetResult(T result)Set the result for this operation.protected abstract Otranslate(T input)
-
-
-
Method Detail
-
setException
public boolean setException(java.io.IOException exception)
Description copied from interface:ResultSet the exception for this operation. Any threads blocking on this instance will be unblocked.- Specified by:
setExceptionin interfaceResult<T>- Parameters:
exception- the exception to set- Returns:
falseif the operation was already completed,trueotherwise
-
setCancelled
public boolean setCancelled()
Description copied from interface:ResultAcknowledge the cancellation of this operation.- Specified by:
setCancelledin interfaceResult<T>- Returns:
falseif the operation was already completed,trueotherwise
-
setResult
public boolean setResult(T result)
Description copied from interface:ResultSet the result for this operation. Any threads blocking on this instance will be unblocked.
-
-