/** * Set the value for the DeferredResult and handle it. * @param result the value to set * @return {@code true} if the result was set and passed on for handling; * {@code false} if the result was already set or the async request expired * @see #isSetOrExpired() */ public boolean setResult(T result) { return setResultInternal(result); }
/** * Set an error value for the {@link DeferredResult} and handle it. * The value may be an {@link Exception} or {@link Throwable} in which case * it will be processed as if a handler raised the exception. * @param result the error result value * @return {@code true} if the result was set to the error value and passed on * for handling; {@code false} if the result was already set or the async * request expired * @see #isSetOrExpired() */ public boolean setErrorResult(Object result) { return setResultInternal(result); }
/** * Set the value for the DeferredResult and handle it. * @param result the value to set * @return {@code true} if the result was set and passed on for handling; * {@code false} if the result was already set or the async request expired * @see #isSetOrExpired() */ public boolean setResult(T result) { return setResultInternal(result); }
/** * Set an error value for the {@link DeferredResult} and handle it. * The value may be an {@link Exception} or {@link Throwable} in which case * it will be processed as if a handler raised the exception. * @param result the error result value * @return {@code true} if the result was set to the error value and passed on * for handling; {@code false} if the result was already set or the async * request expired * @see #isSetOrExpired() */ public boolean setErrorResult(Object result) { return setResultInternal(result); }
/** * Set an error value for the {@link DeferredResult} and handle it. * The value may be an {@link Exception} or {@link Throwable} in which case * it will be processed as if a handler raised the exception. * @param result the error result value * @return {@code true} if the result was set to the error value and passed on * for handling; {@code false} if the result was already set or the async * request expired * @see #isSetOrExpired() */ public boolean setErrorResult(Object result) { return setResultInternal(result); }
/** * Set the value for the DeferredResult and handle it. * @param result the value to set * @return {@code true} if the result was set and passed on for handling; * {@code false} if the result was already set or the async request expired * @see #isSetOrExpired() */ public boolean setResult(T result) { return setResultInternal(result); }