Uses of Interface
io.netty5.util.concurrent.Promise
-
Packages that use Promise Package Description io.netty5.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty5.channel.internal Internal utilities for channel implementations.io.netty5.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty5.handler.ssl io.netty5.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics.io.netty5.resolver Resolves an arbitrary string that represents the name of an endpoint into an address.io.netty5.resolver.dns 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.io.netty5.util Utility classes used across multiple packages.io.netty5.util.concurrent Utility classes for concurrent / async tasks.io.netty5.util.internal Internal-use-only utilities which is not allowed to be used outside Netty. -
-
Uses of Promise in io.netty5.channel
Methods in io.netty5.channel that return Promise Modifier and Type Method Description default <V> Promise<V>ChannelOutboundInvoker. newPromise()<V> Promise<V>DefaultChannelPipeline. newPromise()Promise<Void>PendingWriteQueue. remove()Removes a pending write operation and release its message viaResource.dispose(Object).Methods in io.netty5.channel with parameters of type Promise Modifier and Type Method Description voidAbstractCoalescingBufferQueue. add(Buffer buf, Promise<Void> promise)Add a buffer to the end of the queue and associate a promise with it that should be completed when all the buffer's bytes have been consumed from the queue and written.voidPendingWriteQueue. add(Object msg, Promise<Void> promise)Add the givenmsgandPromise.voidAbstractCoalescingBufferQueue. addFirst(Buffer buf, Promise<Void> promise)Add a buffer to the front of the queue and associate a promise with it that should be completed when all the buffer's bytes have been consumed from the queue and written.voidChannelOutboundBuffer. addMessage(Object msg, int size, Promise<Void> promise)Add given message to thisChannelOutboundBuffer.protected voidAbstractChannel.DefaultAbstractChannelPipeline. bindTransport(SocketAddress localAddress, Promise<Void> promise)protected abstract voidDefaultChannelPipeline. bindTransport(SocketAddress localAddress, Promise<Void> promise)Bind theSocketAddressto the transport and notify thePromiseonce the operation was completed.protected voidAbstractChannel. closeTransport(Promise<Void> promise)protected voidAbstractChannel.DefaultAbstractChannelPipeline. closeTransport(Promise<Void> promise)protected abstract voidDefaultChannelPipeline. closeTransport(Promise<Void> promise)Close the transport and notify thePromiseonce the operation was completed.protected voidAbstractChannel.DefaultAbstractChannelPipeline. connectTransport(SocketAddress remoteAddress, SocketAddress localAddress, Promise<Void> promise)protected abstract voidDefaultChannelPipeline. connectTransport(SocketAddress remoteAddress, SocketAddress localAddress, Promise<Void> promise)Connect the transport with the given remoteSocketAddress.protected voidAbstractChannel.DefaultAbstractChannelPipeline. deregisterTransport(Promise<Void> promise)protected voidAbstractChannel. deregisterTransport(Promise<Void> promise)protected abstract voidDefaultChannelPipeline. deregisterTransport(Promise<Void> promise)protected voidAbstractChannel.DefaultAbstractChannelPipeline. disconnectTransport(Promise<Void> promise)protected abstract voidDefaultChannelPipeline. disconnectTransport(Promise<Void> promise)Disconnect the transport and notify thePromiseonce the operation was completed.protected booleanAbstractChannel. ensureOpen(Promise<Void> promise)protected voidAbstractChannel.DefaultAbstractChannelPipeline. registerTransport(Promise<Void> promise)protected abstract voidDefaultChannelPipeline. registerTransport(Promise<Void> promise)Register the transport and notify thePromiseonce the operation was completed.BufferAbstractCoalescingBufferQueue. remove(BufferAllocator alloc, int bytes, Promise<Void> aggregatePromise)Remove aBufferfrom the queue with the specified number of bytes.BufferCoalescingBufferQueue. remove(int bytes, Promise<Void> aggregatePromise)Remove aBufferfrom the queue with the specified number of bytes.BufferAbstractCoalescingBufferQueue. removeFirst(Promise<Void> aggregatePromise)Remove the firstBufferfrom the queue.protected voidAbstractChannel. safeSetFailure(Promise<Void> promise, Throwable cause)Marks the specifiedpromiseas failure.protected voidAbstractChannel. safeSetSuccess(Promise<Void> promise)Marks the specifiedpromiseas success.protected voidAbstractChannel.DefaultAbstractChannelPipeline. sendOutboundEventTransport(Object event, Promise<Void> promise)protected abstract voidDefaultChannelPipeline. sendOutboundEventTransport(Object event, Promise<Void> promise)Send a custom outbound event on the transport.protected voidAbstractChannel.DefaultAbstractChannelPipeline. shutdownTransport(ChannelShutdownDirection direction, Promise<Void> promise)protected voidAbstractChannel. shutdownTransport(ChannelShutdownDirection direction, Promise<Void> promise)protected abstract voidDefaultChannelPipeline. shutdownTransport(ChannelShutdownDirection direction, Promise<Void> promise)Shutdown the given direction of the transport and notify thePromiseonce the operation was completed.protected voidAbstractChannel.DefaultAbstractChannelPipeline. writeTransport(Object msg, Promise<Void> promise)protected abstract voidDefaultChannelPipeline. writeTransport(Object msg, Promise<Void> promise)Schedules a write operation on the transport. -
Uses of Promise in io.netty5.channel.internal
Methods in io.netty5.channel.internal that return Promise Modifier and Type Method Description <V> Promise<V>DelegatingChannelHandlerContext. newPromise() -
Uses of Promise in io.netty5.handler.codec.http2
Fields in io.netty5.handler.codec.http2 declared as Promise Modifier and Type Field Description protected Promise<Void>DefaultHttp2ConnectionEncoder.FlowControlledBase. promiseMethods in io.netty5.handler.codec.http2 with parameters of type Promise Modifier and Type Method Description voidDefaultHttp2Connection. close(Promise<Void> promise)voidHttp2Connection. close(Promise<Void> promise)Close this connection.Future<Http2StreamChannel>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.netty5.handler.ssl
Methods in io.netty5.handler.ssl with parameters of type Promise Modifier and Type Method Description Future<Channel>SslHandler. renegotiate(Promise<Channel> promise)Performs TLS renegotiation. -
Uses of Promise in io.netty5.handler.traffic
Methods in io.netty5.handler.traffic with parameters of type Promise Modifier and Type Method Description protected voidAbstractTrafficShapingHandler. submitWrite(ChannelHandlerContext ctx, Object msg, long delay, Promise<Void> promise)Deprecated.protected voidGlobalChannelTrafficShapingHandler. submitWrite(ChannelHandlerContext ctx, Object msg, long size, long writedelay, long now, Promise<Void> promise) -
Uses of Promise in io.netty5.resolver
Methods in io.netty5.resolver with parameters of type Promise Modifier and Type Method Description protected abstract voidAbstractAddressResolver. doResolve(T unresolvedAddress, Promise<T> promise)Invoked byAbstractAddressResolver.resolve(SocketAddress)to perform the actual name resolution.protected voidCompositeNameResolver. doResolve(String inetHost, Promise<T> promise)protected 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 voidSimpleNameResolver. doResolve(String inetHost, Promise<T> promise)Invoked 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.Future<T>AbstractAddressResolver. resolve(SocketAddress address, Promise<T> promise)Future<T>AddressResolver. resolve(SocketAddress address, Promise<T> promise)Resolves the specified address.Future<T>NameResolver. resolve(String inetHost, Promise<T> promise)Resolves the specified name into an address.Future<T>SimpleNameResolver. resolve(String inetHost, Promise<T> promise)Future<List<T>>AbstractAddressResolver. resolveAll(SocketAddress address, Promise<List<T>> promise)Future<List<T>>AddressResolver. resolveAll(SocketAddress address, Promise<List<T>> promise)Resolves the specified address.Future<List<T>>NameResolver. resolveAll(String inetHost, Promise<List<T>> promise)Resolves the specified host name and port into a list of address.Future<List<T>>SimpleNameResolver. resolveAll(String inetHost, Promise<List<T>> promise) -
Uses of Promise in io.netty5.resolver.dns
Methods in io.netty5.resolver.dns with parameters of type Promise Modifier and Type Method Description protected 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)Future<AddressedEnvelope<DnsResponse,InetSocketAddress>>DnsNameResolver. query(DnsQuestion question, Promise<AddressedEnvelope<? extends DnsResponse,InetSocketAddress>> promise)Sends a DNS query with the specified question.Future<AddressedEnvelope<DnsResponse,InetSocketAddress>>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.Future<AddressedEnvelope<DnsResponse,InetSocketAddress>>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.Future<InetAddress>DnsNameResolver. resolve(String inetHost, Iterable<DnsRecord> additionals, Promise<InetAddress> promise)Resolves the specified name into an address.Future<List<DnsRecord>>DnsNameResolver. resolveAll(DnsQuestion question, Iterable<DnsRecord> additionals, Promise<List<DnsRecord>> promise)Resolves theDnsRecords that are matched by the specifiedDnsQuestion.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.netty5.util
Methods in io.netty5.util with parameters of type Promise Modifier and Type Method Description Future<OUT>AsyncMapping. map(IN input, Promise<OUT> promise)Returns theFuturethat will provide the result of the mapping. -
Uses of Promise in io.netty5.util.concurrent
Classes in io.netty5.util.concurrent that implement Promise Modifier and Type Class Description classDefaultPromise<V>Methods in io.netty5.util.concurrent that return Promise Modifier and Type Method Description default <V> Promise<V>EventExecutor. newPromise()Return a newPromise.<V> Promise<V>FuturePromiseFactory. newPromise()Return a newPromise.<V> Promise<V>ImmediateEventExecutor. newPromise()Promise<V>DefaultPromise. setFailure(Throwable cause)Promise<V>Promise. setFailure(Throwable cause)Marks this promise as a failure and notifies all listeners attached to the future.Promise<V>DefaultPromise. setSuccess(V result)Promise<V>Promise. setSuccess(V result)Marks this promise as a success and notifies all listeners attached to the future.Methods in io.netty5.util.concurrent with parameters of type Promise Modifier and Type Method Description default Future<V>Future. cascadeTo(Promise<? super V> promise)voidPromiseCombiner. finish(Promise<Void> aggregatePromise)Sets the promise to be notified when all combined futures have finished.protected static <V> RunnableScheduledFuture<V>AbstractScheduledEventExecutor. newRunnableScheduledFuture(AbstractScheduledEventExecutor executor, Promise<V> promise, Callable<V> task, long deadlineNanos, long periodNanos) -
Uses of Promise in io.netty5.util.internal
Methods in io.netty5.util.internal that return Promise Modifier and Type Method Description Promise<Void>PendingWrite. promise()Promise<Void>PendingWrite. recycleAndGet()Recycle this instance and return thePromise.Methods in io.netty5.util.internal with parameters of type Promise Modifier and Type Method Description static 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)
-