Class NetworkBindRequest
java.lang.Object
io.kroxylicious.proxy.internal.net.NetworkBindingOperation<io.netty.channel.Channel>
io.kroxylicious.proxy.internal.net.NetworkBindRequest
Request for a network endpoint to be bound.
-
Field Summary
Fields inherited from class io.kroxylicious.proxy.internal.net.NetworkBindingOperation
tls -
Constructor Summary
ConstructorsConstructorDescriptionNetworkBindRequest(CompletableFuture<io.netty.channel.Channel> future, Endpoint endpoint) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<io.netty.channel.Channel> The future that signals the completion of the network binding operation.voidperformBindingOperation(io.netty.bootstrap.ServerBootstrap serverBootstrap, ExecutorService executorService) Performs the binding operation.intport()The port associated with the binding operation.Methods inherited from class io.kroxylicious.proxy.internal.net.NetworkBindingOperation
tls
-
Constructor Details
-
NetworkBindRequest
-
-
Method Details
-
getBindingAddress
-
port
public int port()Description copied from class:NetworkBindingOperationThe port associated with the binding operation.- Specified by:
portin classNetworkBindingOperation<io.netty.channel.Channel>- Returns:
- port
-
getFuture
Description copied from class:NetworkBindingOperationThe future that signals the completion of the network binding operation.- Specified by:
getFuturein classNetworkBindingOperation<io.netty.channel.Channel>- Returns:
- completable future
-
performBindingOperation
public void performBindingOperation(io.netty.bootstrap.ServerBootstrap serverBootstrap, ExecutorService executorService) Description copied from class:NetworkBindingOperationPerforms the binding operation. Implementations must organise of the future provided byNetworkBindingOperation.getFuture()to beCompletableFuture.complete(Object)when the binding operation completes successfully. If the binding operations fails, the future must beCompletableFuture.completeExceptionally(Throwable).
If the implementation makes use ofFutureListener, the implementation of theGenericFutureListener.operationComplete(Future)method must delegate work to the executorService rather than occupy the Netty owned worker thread.- Specified by:
performBindingOperationin classNetworkBindingOperation<io.netty.channel.Channel>- Parameters:
serverBootstrap- server bootstrap on which the binding operations must be performed.executorService- executor service
-