public class ChannelRecord extends CompletableFuture<io.netty.channel.Channel> implements io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
CompletableFuture
which is completed once the connection and initial handshake
are completed.
2) Storage for unresolved address and pool info.CompletableFuture.AsynchronousCompletionTask
Modifier and Type | Method and Description |
---|---|
boolean |
closeAndWasIdle() |
boolean |
complete(io.netty.channel.Channel channel) |
SocketAddress |
getUnresolvedAddress() |
boolean |
isIdle() |
static ChannelRecord |
of(io.netty.channel.Channel channel) |
void |
operationComplete(io.netty.channel.ChannelFuture future) |
void |
release(io.netty.channel.Channel channel) |
boolean |
setIdleAndIsClosed() |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
public static ChannelRecord of(io.netty.channel.Channel channel)
public SocketAddress getUnresolvedAddress()
public boolean complete(io.netty.channel.Channel channel)
complete
in class CompletableFuture<io.netty.channel.Channel>
public void operationComplete(io.netty.channel.ChannelFuture future) throws Exception
operationComplete
in interface io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
Exception
public boolean isIdle()
public boolean setIdleAndIsClosed()
public boolean closeAndWasIdle()
public void release(io.netty.channel.Channel channel)
Copyright © 2021 JBoss by Red Hat. All rights reserved.