Uses of Interface
io.netty.util.concurrent.Promise
Packages that use Promise
Package
Description
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
Implementations and API for
Channel pools.Handlers for sending and receiving HTTP/2 frames.
HTTP/3 implementation.
QUIC implementation
Resolves an arbitrary string that represents the name of an endpoint into an address.
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
Utility classes used across multiple packages.
Utility classes for concurrent / async tasks.
Internal-use-only utilities which is not allowed to be used
outside Netty.
-
Uses of Promise in io.netty.channel
Subinterfaces of Promise in io.netty.channelModifier and TypeInterfaceDescriptioninterfaceSpecialChannelPromisewhich will be notified once the associated bytes is transferring.interfaceSpecialChannelFuturewhich is writable.Classes in io.netty.channel that implement PromiseModifier and TypeClassDescriptionclassThe defaultChannelProgressivePromiseimplementation.classThe defaultChannelPromiseimplementation.final classfinal class -
Uses of Promise in io.netty.channel.pool
Methods in io.netty.channel.pool with parameters of type PromiseModifier and TypeMethodDescriptionAcquire aChannelfrom thisChannelPool.Release aChannelback to thisChannelPool. -
Uses of Promise in io.netty.handler.codec.http2
Methods in io.netty.handler.codec.http2 with parameters of type PromiseModifier and TypeMethodDescriptionClose this connection.Http2StreamChannelBootstrap.open(Promise<Http2StreamChannel> promise) Open a newHttp2StreamChannelto use and notifies the givenPromise.voidHttp2StreamChannelBootstrap.open0(ChannelHandlerContext ctx, Promise<Http2StreamChannel> promise) Deprecated.should not be used directly. -
Uses of Promise in io.netty.handler.codec.http3
Methods in io.netty.handler.codec.http3 with parameters of type PromiseModifier and TypeMethodDescriptionvoidHttp3ServerPushStreamManager.newPushStream(long pushId, @Nullable ChannelHandler handler, Promise<QuicStreamChannel> promise) Returns a new HTTP/3 push-stream that will use the givenChannelHandlerto dispatchHttp3PushStreamFrames too.voidHttp3ServerPushStreamManager.newPushStream(long pushId, @Nullable ChannelHandler handler, UnaryOperator<QuicStreamChannelBootstrap> bootstrapConfigurator, Promise<QuicStreamChannel> promise) Returns a new HTTP/3 push-stream that will use the givenChannelHandlerto dispatchHttp3PushStreamFrames too. -
Uses of Promise in io.netty.handler.codec.quic
Methods in io.netty.handler.codec.quic with parameters of type PromiseModifier and TypeMethodDescriptionQuicChannel.collectPathStats(int pathIdx, Promise<QuicConnectionPathStats> promise) Collects statistics about the path of the connection and notifies thePromiseonce done.QuicChannel.collectStats(Promise<QuicConnectionStats> promise) Collects statistics about the connection and notifies thePromiseonce done.QuicChannelBootstrap.connect(Promise<QuicChannel> promise) Connects aQuicChannelto the remote peer and notifies the promise once done.QuicStreamChannelBootstrap.create(Promise<QuicStreamChannel> promise) Creates a newQuicStreamChanneland notifies theFuture.QuicChannel.createStream(QuicStreamType type, @Nullable ChannelHandler handler, Promise<QuicStreamChannel> promise) Creates a stream that is using thisQuicChanneland notifies thePromiseonce done. -
Uses of Promise in io.netty.handler.ssl
Methods in io.netty.handler.ssl with parameters of type PromiseModifier and TypeMethodDescriptionSslHandler.renegotiate(Promise<Channel> promise) Performs TLS renegotiation. -
Uses of Promise in io.netty.resolver
Methods in io.netty.resolver with parameters of type PromiseModifier and TypeMethodDescriptionprotected abstract voidInvoked byAbstractAddressResolver.resolve(SocketAddress)to perform the actual name resolution.protected voidprotected voidDefaultNameResolver.doResolve(String inetHost, Promise<InetAddress> promise) protected voidInetSocketAddressResolver.doResolve(InetSocketAddress unresolvedAddress, Promise<InetSocketAddress> promise) protected voidNoopAddressResolver.doResolve(SocketAddress unresolvedAddress, Promise<SocketAddress> promise) protected voidRoundRobinInetAddressResolver.doResolve(String inetHost, Promise<InetAddress> promise) protected abstract voidInvoked bySimpleNameResolver.resolve(String)to perform the actual name resolution.protected abstract voidAbstractAddressResolver.doResolveAll(T unresolvedAddress, Promise<List<T>> promise) Invoked byAbstractAddressResolver.resolveAll(SocketAddress)to perform the actual name resolution.protected voidCompositeNameResolver.doResolveAll(String inetHost, Promise<List<T>> promise) protected voidDefaultNameResolver.doResolveAll(String inetHost, Promise<List<InetAddress>> promise) protected voidInetSocketAddressResolver.doResolveAll(InetSocketAddress unresolvedAddress, Promise<List<InetSocketAddress>> promise) protected voidNoopAddressResolver.doResolveAll(SocketAddress unresolvedAddress, Promise<List<SocketAddress>> promise) protected voidRoundRobinInetAddressResolver.doResolveAll(String inetHost, Promise<List<InetAddress>> promise) protected abstract voidSimpleNameResolver.doResolveAll(String inetHost, Promise<List<T>> promise) Invoked bySimpleNameResolver.resolveAll(String)to perform the actual name resolution.AbstractAddressResolver.resolve(SocketAddress address, Promise<T> promise) AddressResolver.resolve(SocketAddress address, Promise<T> promise) Resolves the specified address.Resolves the specified name into an address.AbstractAddressResolver.resolveAll(SocketAddress address, Promise<List<T>> promise) AddressResolver.resolveAll(SocketAddress address, Promise<List<T>> promise) Resolves the specified address.NameResolver.resolveAll(String inetHost, Promise<List<T>> promise) Resolves the specified host name and port into a list of address.SimpleNameResolver.resolveAll(String inetHost, Promise<List<T>> promise) -
Uses of Promise in io.netty.resolver.dns
Methods in io.netty.resolver.dns with parameters of type PromiseModifier and TypeMethodDescriptionprotected voidDnsNameResolver.doResolve(String inetHost, DnsRecord[] additionals, Promise<InetAddress> promise, DnsCache resolveCache) Hook designed for extensibility so one can pass a different cache on each resolution attempt instead of using the global one.protected voidDnsNameResolver.doResolve(String inetHost, Promise<InetAddress> promise) protected voidDnsNameResolver.doResolveAll(String inetHost, DnsRecord[] additionals, Promise<List<InetAddress>> promise, DnsCache resolveCache) Hook designed for extensibility so one can pass a different cache on each resolution attempt instead of using the global one.protected voidDnsNameResolver.doResolveAll(String inetHost, Promise<List<InetAddress>> promise) DnsNameResolver.query(DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question using the specified name server list.DnsNameResolver.query(InetSocketAddress nameServerAddr, DnsQuestion question, Iterable<DnsRecord> additionals, Promise<AddressedEnvelope<? extends DnsResponse, InetSocketAddress>> promise) Sends a DNS query with the specified question with additional records using the specified name server list.final Future<InetAddress> DnsNameResolver.resolve(String inetHost, Iterable<DnsRecord> additionals, Promise<InetAddress> promise) Resolves the specified name into an address.DnsNameResolver.resolveAll(DnsQuestion question, Iterable<DnsRecord> additionals, Promise<List<DnsRecord>> promise) Resolves theDnsRecords that are matched by the specifiedDnsQuestion.final Future<List<InetAddress>> DnsNameResolver.resolveAll(String inetHost, Iterable<DnsRecord> additionals, Promise<List<InetAddress>> promise) Resolves the specified host name and port into a list of address. -
Uses of Promise in io.netty.util
Methods in io.netty.util with parameters of type Promise -
Uses of Promise in io.netty.util.concurrent
Subinterfaces of Promise in io.netty.util.concurrentClasses in io.netty.util.concurrent that implement PromiseMethods in io.netty.util.concurrent that return PromiseModifier and TypeMethodDescriptionDefaultPromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) Promise.addListener(GenericFutureListener<? extends Future<? super V>> listener) DefaultPromise.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) Promise.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) DefaultPromise.await()Promise.await()DefaultPromise.awaitUninterruptibly()Promise.awaitUninterruptibly()default <V> Promise<V> EventExecutor.newPromise()Return a newPromise.<V> Promise<V> ImmediateEventExecutor.newPromise()<V> Promise<V> UnorderedThreadPoolEventExecutor.newPromise()Deprecated.DefaultPromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) Promise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) DefaultPromise.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) Promise.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) DefaultPromise.setFailure(Throwable cause) Promise.setFailure(Throwable cause) Marks this future as a failure and notifies all listeners.DefaultPromise.setSuccess(V result) Promise.setSuccess(V result) Marks this future as a success and notifies all listeners.DefaultPromise.sync()Promise.sync()DefaultPromise.syncUninterruptibly()Promise.syncUninterruptibly()Methods in io.netty.util.concurrent with parameters of type PromiseModifier and TypeMethodDescriptionfinal PromiseAggregator<V, F> Deprecated.Add the givenPromises to the aggregator.voidDeprecated.Replaced byPromiseCombiner.add(Future).voidDeprecated.Replaced byPromiseCombiner.addAll(Future[])static <V, F extends Future<V>>
Fstatic <V, F extends Future<V>>
Fstatic <X> voidDeprecated.voidSets the promise to be notified when all combined futures have finished.Constructors in io.netty.util.concurrent with parameters of type PromiseModifierConstructorDescriptionPromiseAggregator(Promise<Void> aggregatePromise) Deprecated.PromiseAggregator(Promise<Void> aggregatePromise, boolean failPending) Deprecated.Creates a new instance.PromiseNotifier(boolean logNotifyFailure, Promise<? super V>... promises) Create a new instance.PromiseNotifier(Promise<? super V>... promises) Create a new instance.UnaryPromiseNotifier(Promise<? super T> promise) Deprecated. -
Uses of Promise in io.netty.util.internal
Methods in io.netty.util.internal that return PromiseModifier and TypeMethodDescriptionPendingWrite.promise()PendingWrite.recycleAndGet()Recycle this instance and return thePromise.Methods in io.netty.util.internal with parameters of type PromiseModifier and TypeMethodDescriptionstatic PendingWritePendingWrite.newInstance(Object msg, Promise<Void> promise) Create a new emptyRecyclableArrayListinstancestatic voidPromiseNotificationUtil.tryCancel(Promise<?> p, InternalLogger logger) static voidPromiseNotificationUtil.tryFailure(Promise<?> p, Throwable cause, InternalLogger logger) static <V> voidPromiseNotificationUtil.trySuccess(Promise<? super V> p, V result, InternalLogger logger)