Package com.linkedin.alpini.netty4.pool
Interface ChannelPoolFactory
-
- All Known Implementing Classes:
FixedChannelPoolFactory
public interface ChannelPoolFactory
An interface to constructManagedChannelPool
instances for theChannelPoolManager
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ManagedChannelPool
construct(ChannelPoolManager manager, io.netty.channel.pool.ChannelPoolHandler handler, io.netty.channel.EventLoopGroup eventLoop, java.net.InetSocketAddress address)
Constructs a new ChannelPool which must connect to the specifiedaddress
.default void
setHttp2PingSendHandlerFunction(java.util.function.Function<io.netty.channel.Channel,Http2PingSendHandler> pingSendHandlerFn)
-
-
-
Method Detail
-
construct
@CheckReturnValue ManagedChannelPool construct(@Nonnull ChannelPoolManager manager, @Nonnull io.netty.channel.pool.ChannelPoolHandler handler, @Nonnull io.netty.channel.EventLoopGroup eventLoop, @Nonnull java.net.InetSocketAddress address)
Constructs a new ChannelPool which must connect to the specifiedaddress
.- Parameters:
manager
- The channel pool manager which will manage the pool.handler
- A handler to be notified of events.eventLoop
- The eventloop for the connection pool.address
- Target address/port for the connection pool.- Returns:
- New instance of
ManagedChannelPool
-
setHttp2PingSendHandlerFunction
default void setHttp2PingSendHandlerFunction(java.util.function.Function<io.netty.channel.Channel,Http2PingSendHandler> pingSendHandlerFn)
-
-