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 classA CompletableFuture that is also a Promise.static classAbstract implementation ofPromise.Invocablewith the specifiedInvocable.InvocationType.static classAbstract implementation ofPromise.InvocablewithInvocable.InvocationTypeset toInvocable.InvocationType.NON_BLOCKING.static classPromise.Task<T>static classMethods 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.getWrapped()static <T> Promise<T> Promise.noop()Methods in org.eclipse.jetty.util with parameters of type PromiseModifier and TypeMethodDescriptionstatic <T> voidPromise.completeWith(Promise<T> promise, CompletableFuture<T> completable) Completes the given promise with the givenCompletableFuture.voidSocketAddressResolver.Async.resolve(String host, int port, Map<String, Object> context, Promise<List<InetSocketAddress>> promise) voidSocketAddressResolver.resolve(String host, int port, Map<String, Object> context, 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, Map<String, Object> context, 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