public interface AsyncResponse
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel() |
boolean |
cancel(Date retryAfter) |
boolean |
cancel(int retryAfter) |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isSuspended() |
Collection<Class<?>> |
register(Class<?> callback) |
Map<Class<?>,Collection<Class<?>>> |
register(Class<?> callback,
Class<?>... callbacks) |
Collection<Class<?>> |
register(Object callback) |
Map<Class<?>,Collection<Class<?>>> |
register(Object callback,
Object... callbacks) |
boolean |
resume(Object response) |
boolean |
resume(Throwable response) |
boolean |
setTimeout(long time,
TimeUnit unit) |
void |
setTimeoutHandler(TimeoutHandler handler) |
static final long NO_TIMEOUT
boolean resume(Object response)
boolean resume(Throwable response)
boolean cancel()
boolean cancel(int retryAfter)
boolean cancel(Date retryAfter)
boolean isSuspended()
boolean isCancelled()
boolean isDone()
boolean setTimeout(long time,
TimeUnit unit)
void setTimeoutHandler(TimeoutHandler handler)
Collection<Class<?>> register(Class<?> callback)
Collection<Class<?>> register(Object callback)
Copyright © 2018 The Apache Software Foundation. All rights reserved.