Top Description Constructors Methods
org.glassfish.tyrus.core

public Class TyrusFuture<T>

extends CompletableFuture<T>
Class Inheritance
Imports
java.util.concurrent.CompletableFuture, .Future

Tyrus Future implementation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
setFailure(Throwable
throwable.
throwable
)

Sets the failure result of message writing process.

public void
setResult(T
result
result
)

Sets the result of the message writing process.

Inherited from java.util.concurrent.CompletableFuture:
acceptEitheracceptEitherAsyncacceptEitherAsyncallOfanyOfapplyToEitherapplyToEitherAsyncapplyToEitherAsynccancelcompletecompleteAsynccompleteAsynccompletedFuturecompletedStagecompleteExceptionallycompleteOnTimeoutcopydefaultExecutordelayedExecutordelayedExecutorexceptionallyexceptionallyAsyncexceptionallyAsyncexceptionallyComposeexceptionallyComposeAsyncexceptionallyComposeAsyncexceptionNowfailedFuturefailedStagegetgetgetNowgetNumberOfDependentshandlehandleAsynchandleAsyncisCancelledisCompletedExceptionallyisDonejoinminimalCompletionStagenewIncompleteFutureobtrudeExceptionobtrudeValueorTimeoutresultNowrunAfterBothrunAfterBothAsyncrunAfterBothAsyncrunAfterEitherrunAfterEitherAsyncrunAfterEitherAsyncrunAsyncrunAsyncstatesupplyAsyncsupplyAsyncthenAcceptthenAcceptAsyncthenAcceptAsyncthenAcceptBoththenAcceptBothAsyncthenAcceptBothAsyncthenApplythenApplyAsyncthenApplyAsyncthenCombinethenCombineAsyncthenCombineAsyncthenComposethenComposeAsyncthenComposeAsyncthenRunthenRunAsyncthenRunAsynctoCompletableFuturetoStringwhenCompletewhenCompleteAsyncwhenCompleteAsync

Constructor Detail

TyrusFutureback to summary
public TyrusFuture()

Method Detail

setFailureback to summary
public void setFailure(Throwable throwable)

Sets the failure result of message writing process.

Parameters
throwable:Throwable

throwable.

setResultback to summary
public void setResult(T result)

Sets the result of the message writing process.

Parameters
result:T

result