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 providingSession
support.ratpack.test.exec -
-
Uses of Operation in ratpack.exec
Methods in ratpack.exec that return Operation Modifier and Type Method Description default Operation
Operation. blockingNext(Block operation)
Executes the given block as an operation, on a blocking thread.default Operation
Promise. flatOp(Function<? super T,? extends Operation> function)
Converts this promise to an operation, which is the return offunction
.static Operation
Operation. flatten(Factory<Operation> factory)
Create an operation that delegates to another operation.default Operation
Operation. mapError(Action<? super java.lang.Throwable> action)
Convert an error to a success or different error.default Operation
Operation. next(Operation operation)
default Operation
Operation. next(Block operation)
static Operation
Operation. noop()
static Operation
Operation. of(Block block)
Operation
Operation. onError(Action<? super java.lang.Throwable> onError)
static Operation
Blocking. op(Block block)
default Operation
Promise. operation()
Converts this promise to an operation, by effectively discarding the result.default Operation
Promise. operation(Action<? super T> action)
Converts this promise to an operation which is effectivelyaction
.static Operation
Execution. sleep(java.time.Duration duration)
Creates a sleep operation.default Operation
Operation. 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 Operation
Operation. next(Operation operation)
default void
ExecStarter. 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 Operation
Promise. flatOp(Function<? super T,? extends Operation> function)
Converts this promise to an operation, which is the return offunction
.static Operation
Operation. 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> O
Operation. 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 Operation
Batch. 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.Operation
ParallelBatch. 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.Operation
SerialBatch. 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 Operation
FileIo. 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 Operation
FileIo. 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 Operation
Block. 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 HttpClientSpec
HttpClientSpec. responseIntercept(Operation operation)
Execute the provideOperation
for all responses returned by this client. -
Uses of Operation in ratpack.jdbctx
Methods in ratpack.jdbctx that return Operation Modifier and Type Method Description Operation
Transaction. begin()
Starts a transaction.Operation
Transaction. commit()
Commits the transaction, or pops the most recent savepoint off the stack.Operation
Transaction. rollback()
Initiates a transaction rollback.Operation
Transaction. 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 Operation
Transaction. 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 Operation
RatpackPac4j. 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 aOperation
into anObservable
. -
Uses of Operation in ratpack.rx2
Methods in ratpack.rx2 with parameters of type Operation Modifier and Type Method Description static Completable
RxRatpack. complete(Operation operation)
Converts aOperation
into aCompletable
. -
Uses of Operation in ratpack.session
Methods in ratpack.session that return Operation Modifier and Type Method Description default Operation
Session. clear()
A convenience shorthand forSessionData.clear()
.default Operation
Session. remove(java.lang.Class<?> type)
A convenience shorthand forSessionData.remove(Class)
.default Operation
Session. remove(java.lang.String name)
A convenience shorthand forSessionData.remove(String)
.default Operation
Session. remove(SessionKey<?> key)
A convenience shorthand forSessionData.remove(SessionKey)
.Operation
SessionStore. remove(io.netty.util.AsciiString sessionId)
Removes the session data for the given id.Operation
Session. save()
Persists the session data.default Operation
SessionData. save()
SeeSession.save()
.default <T> Operation
Session. set(java.lang.Class<T> type, T value)
A convenience shorthand forSessionData.set(Class, Object)
.default <T> Operation
Session. set(java.lang.Class<T> type, T value, SessionSerializer serializer)
A convenience shorthand forSessionData.set(Class, Object, SessionSerializer)
.default <T> Operation
Session. set(java.lang.String name, T value)
A convenience shorthand forSessionData.set(String, Object)
.default <T> Operation
Session. set(java.lang.String name, T value, SessionSerializer serializer)
A convenience shorthand forSessionData.set(String, Object, SessionSerializer)
.default <T> Operation
Session. set(SessionKey<T> key, T value)
A convenience shorthand forSessionData.set(SessionKey, Object)
.default <T> Operation
Session. set(SessionKey<T> key, T value, SessionSerializer serializer)
A convenience shorthand forSessionData.set(SessionKey, Object, SessionSerializer)
.default <T> Operation
Session. set(T value)
A convenience shorthand forSessionData.set(Object)
.default <T> Operation
Session. set(T value, SessionSerializer serializer)
A convenience shorthand forSessionData.set(Object, SessionSerializer)
.Operation
SessionStore. store(io.netty.util.AsciiString sessionId, io.netty.buffer.ByteBuf sessionData)
Writes the session data for the given id.Operation
Session. terminate()
Terminates the session and session id.default Operation
SessionData. 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 void
ExecHarness. execute(Operation operation)
static void
ExecHarness. executeSingle(Operation operation)
Method parameters in ratpack.test.exec with type arguments of type Operation Modifier and Type Method Description default void
ExecHarness. execute(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Operation> function)
default void
ExecHarness. execute(Function<? super Execution,? extends Operation> function)
static void
ExecHarness. executeSingle(Action<? super RegistrySpec> registry, Function<? super Execution,? extends Operation> function)
static void
ExecHarness. executeSingle(Function<? super Execution,? extends Operation> function)
-