Class NetworkUnbindRequest
java.lang.Object
io.kroxylicious.proxy.internal.net.NetworkBindingOperation<Void>
io.kroxylicious.proxy.internal.net.NetworkUnbindRequest
Request for a network endpoint to be unbound.
-
Field Summary
Fields inherited from class io.kroxylicious.proxy.internal.net.NetworkBindingOperation
tls -
Constructor Summary
ConstructorsConstructorDescriptionNetworkUnbindRequest(boolean tls, io.netty.channel.Channel channel, CompletableFuture<Void> future) -
Method Summary
Modifier and TypeMethodDescriptionThe 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
-
NetworkUnbindRequest
public NetworkUnbindRequest(boolean tls, io.netty.channel.Channel channel, CompletableFuture<Void> future)
-
-
Method Details
-
port
public int port()Description copied from class:NetworkBindingOperationThe port associated with the binding operation.- Specified by:
portin classNetworkBindingOperation<Void>- Returns:
- port
-
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<Void>- Parameters:
serverBootstrap- server bootstrap on which the binding operations must be performed.executorService- executor service
-
getFuture
Description copied from class:NetworkBindingOperationThe future that signals the completion of the network binding operation.- Specified by:
getFuturein classNetworkBindingOperation<Void>- Returns:
- completable future
-