Uses of Interface
org.eclipse.jetty.util.Callback
Packages that use Callback
-
Uses of Callback in org.eclipse.jetty.util
Subinterfaces of Callback in org.eclipse.jetty.utilModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceA Callback implementation that calls theCallback.Completing.completed()method when it either succeeds or fails.Classes in org.eclipse.jetty.util that implement CallbackModifier and TypeClassDescriptionstatic classACompletableFuturethat is also aCallback.static classNested Completing Callback that completes after completing the nested callbackclassA callback wrapper that succeeds the wrapped callback when the count is reached, or on first failure.classclassThis specialized callback implements a pattern that allows a large asynchronous task to be broken into smaller asynchronous sub-tasks using iteration rather than recursion.classIterating Nested Callback.classDeprecated.A Closeable Callback.Fields in org.eclipse.jetty.util declared as CallbackModifier and TypeFieldDescriptionstatic final CallbackCallback.NOOPInstance of Callback that can be used when the callback methods need an empty implementation without incurring in the cost of allocating a new Callback object.static final CallbackCallback.NOT_CALLEDInstance of Callback to use in cases where it is known that no one will complete the callback.Methods in org.eclipse.jetty.util that return CallbackModifier and TypeMethodDescriptionstatic Callbackstatic CallbackCreates a callback that runs completed when it succeeds or failsstatic CallbackCreates a callback from the given success and failure lambdas.static CallbackCreates a nested callback that runs completed before completing the nested callback.static CallbackCallback.from(CompletableFuture<?> completable) Creates a non-blocking callback from the given incomplete CompletableFuture.static CallbackCallback.from(CompletableFuture<?> completable, Invocable.InvocationType invocationType) Creates a callback from the given incomplete CompletableFuture, with the givenblockingcharacteristic.static CallbackCreates a nested callback that runs completed after completing the nested callback.static CallbackCreates a nested callback which always fails the nested callback on completion.static CallbackCreates a nested callback that runs completed after completing the nested callback.static CallbackCreates a callback which combines two other callbacks and will succeed or fail them both.static CallbackCallback.from(Invocable.InvocationType invocationType, Runnable completed) Creates a Callback with the giveninvocationType, that runs the givenRunnablewhen it succeeds or fails.static CallbackCallback.from(Invocable.InvocationType invocationType, Runnable success, Consumer<Throwable> failure) Creates a callback with the given InvocationType from the given success and failure lambdas.Callback.Nested.getCallback()Callback.Combination.newCallback()Create a newCallbackas part of this combination.static <T> CallbackPromise.Invocable.toCallback(Promise.Invocable<T> promise, T result) Returns a newCallbackthat, when it is completed, completes the given promise.Methods in org.eclipse.jetty.util with parameters of type CallbackModifier and TypeMethodDescriptionstatic Callbackstatic Callback.CompletableCreates a completable future given a callback.static CallbackCreates a nested callback that runs completed before completing the nested callback.static CallbackCreates a nested callback that runs completed after completing the nested callback.static CallbackCreates a nested callback which always fails the nested callback on completion.static CallbackCreates a nested callback that runs completed after completing the nested callback.static CallbackCreates a callback which combines two other callbacks and will succeed or fail them both.voidGet 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 CallbackModifierConstructorDescriptionCombination(Callback andThen) Create a new empty combined callback.Combination(Callback andThen, Throwable failure) Create a new empty combined callback with a forced failure and invocation type.CountingCallback(Callback callback, int count) IteratingNestedCallback(Callback callback)