Uses of Class
ratpack.exec.api.NonBlocking
-
Packages that use NonBlocking Package Description ratpack.core.error Types that deal with handling application errors.ratpack.core.handling The handling of application requests.ratpack.core.http The HTTP protocol.ratpack.core.render The renderer framework provides a pluggable mechanism for serializing objects to the response.ratpack.core.server Objects used to start a ratpack application.ratpack.core.service Services participate in the application start/stop lifecycle.ratpack.core.websocket Support for Websockets.ratpack.exec The execution management. -
-
Uses of NonBlocking in ratpack.core.error
Methods in ratpack.core.error with annotations of type NonBlocking Modifier and Type Method Description void
ServerErrorHandler. error(Context context, Throwable throwable)
Processes the given exception that occurred processing the given context.default void
ServerErrorHandler. error(Context context, InvalidPathEncodingException exception)
Processes the given request path encoding error that occurred processing the given context. -
Uses of NonBlocking in ratpack.core.handling
Methods in ratpack.core.handling with annotations of type NonBlocking Modifier and Type Method Description void
Context. byMethod(Action<? super ByMethodSpec> action)
Respond to the request based on the request method.void
Context. clientError(int statusCode)
Forwards the error to theClientErrorHandler
in this service.void
Context. error(Throwable throwable)
Handles any error thrown during request handling.void
Handler. handle(Context ctx)
Handles the context.void
Context. insert(Handler... handlers)
Inserts some handlers into the pipeline, then delegates to the first.void
Context. insert(Registry registry, Handler... handlers)
Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.void
Context. lastModified(Instant lastModified, Runnable serve)
Convenience method for handling last-modified based HTTP caching.default void
Context. lastModified(Date lastModified, Runnable serve)
Convenience method for handling last-modified based HTTP caching.void
Context. next()
Delegate handling to the next handler in line.void
Context. next(Registry registry)
Invokes the next handler, after adding the given registry.void
Context. render(Object object)
Render the given object, using the rendering framework. -
Uses of NonBlocking in ratpack.core.http
Methods in ratpack.core.http with annotations of type NonBlocking Modifier and Type Method Description void
Response. send()
Sends the response back to the client, with no body.void
Response. send(byte[] bytes)
Sends the response, using "application/octet-stream
" as the content type (if a content type hasn't already been set) and the given byte array as the response body.void
Response. send(io.netty.buffer.ByteBuf buffer)
Sends the response, using "application/octet-stream
" as the content type (if a content type hasn't already been set) and the given bytes as the response body.void
Response. send(CharSequence contentType, byte[] bytes)
Sends the response, using the given content type and byte array as the response body.void
Response. send(CharSequence contentType, io.netty.buffer.ByteBuf buffer)
Sends the response, using the given content type and bytes as the response body.void
Response. send(CharSequence contentType, String body)
Sends the response, using the given content type and string as the response body.void
Response. send(String text)
Sends the response, using "text/plain
" as the content type and the given string as the response body.void
Response. sendFile(Path file)
Sends the response, using the file as the response body.void
Response. sendStream(Publisher<? extends io.netty.buffer.ByteBuf> stream)
Sends the response, streaming the bytes emitted by the given publisher.Method parameters in ratpack.core.http with annotations of type NonBlocking Modifier and Type Method Description Response
Response. beforeSend(Action<? super Response> responseFinalizer)
Register a callback to execute with the response immediately before sending it to the client. -
Uses of NonBlocking in ratpack.core.render
Methods in ratpack.core.render with annotations of type NonBlocking Modifier and Type Method Description void
Renderer. render(Context context, T object)
Render the given object to the response. -
Uses of NonBlocking in ratpack.core.server
Methods in ratpack.core.server with annotations of type NonBlocking Modifier and Type Method Description void
Stopper. stop()
Initiates the shutdown process for the running application. -
Uses of NonBlocking in ratpack.core.service
Methods in ratpack.core.service with annotations of type NonBlocking Modifier and Type Method Description default void
Service. onStart(StartEvent event)
Server startup event.default void
Service. onStop(StopEvent event)
Server stop event. -
Uses of NonBlocking in ratpack.core.websocket
Methods in ratpack.core.websocket with annotations of type NonBlocking Modifier and Type Method Description void
WebSocket. close()
void
WebSocket. close(int statusCode, String reason)
void
WebSocket. send(io.netty.buffer.ByteBuf text)
void
WebSocket. send(String text)
-
Uses of NonBlocking in ratpack.exec
Methods in ratpack.exec with annotations of type NonBlocking Modifier and Type Method Description default void
ExecStarter. start(Operation operation)
Starts the execution, and executes the given operation.void
ExecStarter. start(Action<? super Execution> initialExecutionSegment)
Starts the execution, with the given action as the initial segment.default void
Operation. then()
void
Operation. then(Block block)
Method parameters in ratpack.exec with annotations of type NonBlocking Modifier and Type Method Description default Promise<T>
Promise. next(Action<? super T> action)
Executes the provided, potentially asynchronous,Action
with the promised value as input.default Promise<T>
Promise. onError(Predicate<? super Throwable> predicate, Action<? super Throwable> errorHandler)
Specifies the action to take if the an error occurs trying to produce the promised value, that the given predicate applies to.default Operation
Promise. operation(Action<? super T> action)
Converts this promise to an operation which is effectivelyaction
.
-