Uses of Interface
ratpack.exec.Operation
-
Packages that use Operation Package Description ratpack.exec The execution management.ratpack.exec.util ratpack.file Types for dealing with the file system and serving files.ratpack.func General functional (i.e. Single Abstract Method) types.ratpack.http.client The HTTP client.ratpack.jdbctx ratpack.pac4j Integration with pac4j for authentication/authorization.ratpack.reactor Provides integration with the Project Reactor library.ratpack.rx Provides integration with the RxJava library.ratpack.rx2 Provides integration with the RxJava library.ratpack.session Objects for providingSessionsupport.ratpack.test.exec -
-
Uses of Operation in ratpack.exec
Methods in ratpack.exec that return Operation Modifier and Type Method Description default OperationOperation. blockingNext(Block operation)Executes the given block as an operation, on a blocking thread.default OperationPromise. flatOp(Function<? super T,? extends Operation> function)Converts this promise to an operation, which is the return offunction.static OperationOperation. flatten(Factory<Operation> factory)Create an operation that delegates to another operation.default OperationOperation. mapError(Action<? super java.lang.Throwable> action)Convert an error to a success or different error.default OperationOperation. next(Operation operation)default OperationOperation. next(Block operation)static OperationOperation. noop()static OperationOperation. of(Block block)default <E extends java.lang.Throwable>
OperationOperation. onError(java.lang.Class<E> errorType, Action<? super E> errorHandler)Specifies the action to take if the an error of the given type occurs trying to perform the operation.default OperationOperation. onError(Action<? super java.lang.Throwable> onError)OperationOperation. onError(Predicate<? super java.lang.Throwable> predicate, Action<? super java.lang.Throwable> errorHandler)Specifies the action to take if the an error occurs performing the operation that the given predicate applies to.static OperationBlocking. op(Block block)default OperationPromise. operation()Converts this promise to an operation, by effectively discarding the result.default OperationPromise. operation(Action<? super T> action)Converts this promise to an operation which is effectivelyaction.static OperationExecution. sleep(java.time.Duration duration)Creates a sleep operation.default OperationOperation. wiretap(Action<? super java.util.Optional<? extends java.lang.Throwable>> action)Methods in ratpack.exec with parameters of type Operation Modifier and Type Method Description default Promise<T>Promise. close(Operation closer)LikePromise.close(AutoCloseable), but allows async close operations.default OperationOperation. next(Operation operation)default voidExecStarter. start(Operation operation)Starts the execution, and executes the given operation.Method parameters in ratpack.exec with type arguments of type Operation Modifier and Type Method Description default OperationPromise. flatOp(Function<? super T,? extends Operation> function)Converts this promise to an operation, which is the return offunction.static OperationOperation. flatten(Factory<Operation> factory)Create an operation that delegates to another operation.default Promise<T>Promise. nextOp(Function<? super T,? extends Operation> function)Executes the operation returned by the given function.default Promise<T>Promise. nextOpIf(Predicate<? super T> predicate, Function<? super T,? extends Operation> function)Executes the operation returned by the given function, if it satisfies the predicate.default <O> OOperation. to(Function<? super Operation,? extends O> function) -
Uses of Operation in ratpack.exec.util
Methods in ratpack.exec.util that return Operation Modifier and Type Method Description OperationBatch. forEach(BiAction<? super java.lang.Integer,? super T> consumer)Processes the promises of the batch, stopping at the first error, emitting results to the given callback.OperationParallelBatch. forEach(BiAction<? super java.lang.Integer,? super T> consumer)Processes the promises of the batch, stopping at the first error, emitting results to the given callback.OperationSerialBatch. forEach(BiAction<? super java.lang.Integer,? super T> consumer)Processes the promises of the batch, stopping at the first error, emitting results to the given callback. -
Uses of Operation in ratpack.file
Methods in ratpack.file that return Operation Modifier and Type Method Description static OperationFileIo. write(io.netty.buffer.ByteBuf bytes, long position, Promise<? extends java.nio.channels.AsynchronousFileChannel> file)Writes the given bytes to the given file, starting at the given position.static OperationFileIo. write(io.netty.buffer.ByteBuf bytes, Promise<? extends java.nio.channels.AsynchronousFileChannel> file)Writes the given bytes to the given file, starting at the start. -
Uses of Operation in ratpack.func
Methods in ratpack.func that return Operation Modifier and Type Method Description default OperationBlock. operation()Deprecated.since 1.5 -
Uses of Operation in ratpack.http.client
Methods in ratpack.http.client with parameters of type Operation Modifier and Type Method Description HttpClientSpecHttpClientSpec. responseIntercept(Operation operation)Execute the provideOperationfor all responses returned by this client. -
Uses of Operation in ratpack.jdbctx
Methods in ratpack.jdbctx that return Operation Modifier and Type Method Description OperationTransaction. begin()Starts a transaction.OperationTransaction. commit()Commits the transaction, or pops the most recent savepoint off the stack.OperationTransaction. rollback()Initiates a transaction rollback.OperationTransaction. wrap(Operation operation)Decorates the given operation in a transaction boundary.Methods in ratpack.jdbctx with parameters of type Operation Modifier and Type Method Description OperationTransaction. wrap(Operation operation)Decorates the given operation in a transaction boundary. -
Uses of Operation in ratpack.pac4j
Methods in ratpack.pac4j that return Operation Modifier and Type Method Description static OperationRatpackPac4j. logout(Context ctx)Deprecated.Logs out the current user, removing their profile from the session. -
Uses of Operation in ratpack.reactor
Methods in ratpack.reactor with parameters of type Operation Modifier and Type Method Description static Flux<java.lang.Void>ReactorRatpack. flux(Operation operation) -
Uses of Operation in ratpack.rx
Methods in ratpack.rx with parameters of type Operation Modifier and Type Method Description static Observable<java.lang.Void>RxRatpack. observe(Operation operation)Deprecated.Converts aOperationinto anObservable. -
Uses of Operation in ratpack.rx2
Methods in ratpack.rx2 with parameters of type Operation Modifier and Type Method Description static CompletableRxRatpack. complete(Operation operation)Converts aOperationinto aCompletable. -
Uses of Operation in ratpack.session
Methods in ratpack.session that return Operation Modifier and Type Method Description default OperationSession. clear()A convenience shorthand forSessionData.clear().default OperationSession. remove(java.lang.Class<?> type)A convenience shorthand forSessionData.remove(Class).default OperationSession. remove(java.lang.String name)A convenience shorthand forSessionData.remove(String).default OperationSession. remove(SessionKey<?> key)A convenience shorthand forSessionData.remove(SessionKey).OperationSessionStore. remove(io.netty.util.AsciiString sessionId)Removes the session data for the given id.OperationSession. save()Persists the session data.default OperationSessionData. save()SeeSession.save().default <T> OperationSession. set(java.lang.Class<T> type, T value)A convenience shorthand forSessionData.set(Class, Object).default <T> OperationSession. set(java.lang.Class<T> type, T value, SessionSerializer serializer)A convenience shorthand forSessionData.set(Class, Object, SessionSerializer).default <T> OperationSession. set(java.lang.String name, T value)A convenience shorthand forSessionData.set(String, Object).default <T> OperationSession. set(java.lang.String name, T value, SessionSerializer serializer)A convenience shorthand forSessionData.set(String, Object, SessionSerializer).default <T> OperationSession. set(SessionKey<T> key, T value)A convenience shorthand forSessionData.set(SessionKey, Object).default <T> OperationSession. set(SessionKey<T> key, T value, SessionSerializer serializer)A convenience shorthand forSessionData.set(SessionKey, Object, SessionSerializer).default <T> OperationSession. set(T value)A convenience shorthand forSessionData.set(Object).default <T> OperationSession. set(T value, SessionSerializer serializer)A convenience shorthand forSessionData.set(Object, SessionSerializer).OperationSessionStore. store(io.netty.util.AsciiString sessionId, io.netty.buffer.ByteBuf sessionData)Writes the session data for the given id.OperationSession. terminate()Terminates the session and session id.default OperationSessionData. terminate()SeeSession.terminate(). -
Uses of Operation in ratpack.test.exec
Methods in ratpack.test.exec with parameters of type Operation Modifier and Type Method Description default voidExecHarness. execute(Operation operation)static voidExecHarness. executeSingle(Operation operation)Method parameters in ratpack.test.exec with type arguments of type Operation Modifier and Type Method Description default voidExecHarness. execute(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Operation> function)default voidExecHarness. execute(Function<? super Execution,? extends Operation> function)static voidExecHarness. executeSingle(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Operation> function)static voidExecHarness. executeSingle(Function<? super Execution,? extends Operation> function)
-