Uses of Interface
org.eclipse.jetty.util.Callback
-
Packages that use Callback Package Description org.eclipse.jetty.util Jetty Util : Common Utility Classes -
-
Uses of Callback in org.eclipse.jetty.util
Classes in org.eclipse.jetty.util that implement Callback Modifier and Type Class Description static classCallback.CompletableA CompletableFuture that is also a Callback.static classCallback.CompletingA Callback implementation that calls theCallback.Completing.completed()method when it either succeeds or fails.static classCallback.NestedNested Completing Callback that completes after completing the nested callbackclassCountingCallbackA callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.classFutureCallbackclassIteratingCallbackThis specialized callback implements a pattern that allows a large job to be broken into smaller tasks using iteration rather than recursion.classIteratingNestedCallbackIterating Nested Callback.classSharedBlockingCallback.BlockerA Closeable Callback.Fields in org.eclipse.jetty.util declared as Callback Modifier and Type Field Description static CallbackCallback. NOOPInstance of Adapter that can be used when the callback methods need an empty implementation without incurring in the cost of allocating a new Adapter object.Methods in org.eclipse.jetty.util that return Callback Modifier and Type Method Description static CallbackCallback. combine(Callback cb1, Callback cb2)static CallbackCallback. from(java.lang.Runnable completed)Creates a callback that runs completed when it succeeds or failsstatic CallbackCallback. from(java.lang.Runnable success, java.util.function.Consumer<java.lang.Throwable> failure)Creates a callback from the given success and failure lambdas.static CallbackCallback. from(java.lang.Runnable completed, Callback callback)Creates a nested callback that runs completed before completing the nested callback.static CallbackCallback. from(java.util.concurrent.CompletableFuture<?> completable)Creates a non-blocking callback from the given incomplete CompletableFuture.static CallbackCallback. from(java.util.concurrent.CompletableFuture<?> completable, Invocable.InvocationType invocation)Creates a callback from the given incomplete CompletableFuture, with the givenblockingcharacteristic.static CallbackCallback. from(Callback callback, java.lang.Runnable completed)Creates a nested callback that runs completed after completing the nested callback.static CallbackCallback. from(Callback callback, java.lang.Throwable cause)Creates a nested callback which always fails the nested callback on completion.static CallbackCallback. from(Callback callback1, Callback callback2)Creates a callback which combines two other callbacks and will succeed or fail them both.static CallbackCallback. from(Invocable.InvocationType invocationType, java.lang.Runnable completed)Creates a Callback with the giveninvocationType, that runs the givenRunnablewhen it succeeds or fails.static CallbackCallback. from(Invocable.InvocationType invocationType, java.lang.Runnable success, java.util.function.Consumer<java.lang.Throwable> failure)Creates a callback with the given InvocationType from the given success and failure lambdas.CallbackCallback.Nested. getCallback()Methods in org.eclipse.jetty.util with parameters of type Callback Modifier and Type Method Description static CallbackCallback. combine(Callback cb1, Callback cb2)static Callback.CompletableCallback.Completable. from(Callback callback)Creates a completable future given a callback.static CallbackCallback. from(java.lang.Runnable completed, Callback callback)Creates a nested callback that runs completed before completing the nested callback.static CallbackCallback. from(Callback callback, java.lang.Runnable completed)Creates a nested callback that runs completed after completing the nested callback.static CallbackCallback. from(Callback callback, java.lang.Throwable cause)Creates a nested callback which always fails the nested callback on completion.static CallbackCallback. from(Callback callback1, Callback callback2)Creates a callback which combines two other callbacks and will succeed or fail them both.voidScanner. scan(Callback complete)Get the scanner to perform a scan cycle as soon as possible and call the Callback when the scan is finished or failed.Constructors in org.eclipse.jetty.util with parameters of type Callback Constructor Description CountingCallback(Callback callback, int count)IteratingNestedCallback(Callback callback)Nested(Callback callback)
-