Package | Description |
---|---|
ratpack.exec | |
ratpack.handling |
The handling of application requests.
|
ratpack.http.client | |
ratpack.rx |
Provides integration with the RxJava library.
|
Modifier and Type | Method and Description |
---|---|
<T> Promise<T> |
ExecContext.blocking(Callable<T> blockingOperation)
Performs a blocking operation on a separate thread, returning a promise for its value.
|
<T> Promise<T> |
ExecControl.blocking(Callable<T> blockingOperation)
Performs a blocking operation on a separate thread, returning a promise for its value.
|
<T> Promise<T> |
ExecContext.promise(Action<? super Fulfiller<T>> action)
Creates a promise for an asynchronously created value.
|
<T> Promise<T> |
ExecControl.promise(Action<? super Fulfiller<T>> action)
Creates a promise for an asynchronously created value.
|
Modifier and Type | Method and Description |
---|---|
<T> Promise<T> |
Context.blocking(Callable<T> blockingOperation)
Executes a blocking operation, returning a promise for its result.
|
<T> Promise<T> |
Context.promise(Action<? super Fulfiller<T>> action)
Creates a promise of a value that will made available asynchronously.
|
Modifier and Type | Method and Description |
---|---|
Promise<ReceivedResponse> |
HttpClient.get(String httpUrl) |
Promise<ReceivedResponse> |
HttpClient.get(String httpUrl,
Action<? super RequestSpec> action) |
Promise<ReceivedResponse> |
HttpClient.post(String httpUrl,
Action<? super RequestSpec> action) |
Promise<ReceivedResponse> |
HttpClient.request(String httpUrl,
Action<? super RequestSpec> action) |
Modifier and Type | Method and Description |
---|---|
static <T> Observable<T> |
RxRatpack.observe(Promise<T> promise)
Converts a Ratpack promise into an Rx observable.
|
static <T,I extends Iterable<T>> |
RxRatpack.observeEach(Promise<I> promise)
Converts a Ratpack promise of an iterable value into an Rx observable for each element of the promised iterable.
|