Uses of Interface
org.eclipse.jetty.util.Promise
Packages that use Promise
-
Uses of Promise in org.eclipse.jetty.util
Subinterfaces of Promise in org.eclipse.jetty.utilModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceClasses in org.eclipse.jetty.util that implement PromiseModifier and TypeClassDescriptionclassstatic classEmpty implementation ofPromise.static classA CompletableFuture that is also a Promise.static classPromise.Task<T>static classFields in org.eclipse.jetty.util declared as PromiseMethods in org.eclipse.jetty.util that return PromiseModifier and TypeMethodDescriptionstatic <T> Promise<T> Creates a promise that runs the givenRunnablewhen it succeeds or fails.static <T> Promise<T> Promise.from(CompletableFuture<? super T> completable) Creates a promise from the given incomplete CompletableFuture.static <T> Promise<T> Creates a Promise from the given success and failure consumers.Promise.Wrapper.getPromise()static <T> Promise<T> Promise.noop()Promise.Wrapper.unwrap()Methods in org.eclipse.jetty.util with parameters of type PromiseModifier and TypeMethodDescriptionstatic <C> Promise.Invocable<C> Create anPromise.Invocablethat isInvocable.InvocationType.NON_BLOCKINGbecause it executes the callbacksstatic <C> Promise.Invocable<C> Promise.from(Invocable.InvocationType invocationType, Promise<C> promise) Create anPromise.InvocablevoidSocketAddressResolver.Async.resolve(String host, int port, Promise<List<InetSocketAddress>> promise) voidSocketAddressResolver.resolve(String host, int port, Promise<List<InetSocketAddress>> promise) Resolves via DNS the given host and port, within the connect timeout, returning a list ofInetSocketAddressthrough the givenPromise.voidSocketAddressResolver.Sync.resolve(String host, int port, Promise<List<InetSocketAddress>> promise) Method parameters in org.eclipse.jetty.util with type arguments of type PromiseModifier and TypeMethodDescriptionstatic <R> Promise.Completable<R> Creates a newCompletableto be consumed by the givenconsumer, then returns the newly createdCompletable.Constructors in org.eclipse.jetty.util with parameters of type Promise