public class ClientBuilder<I,O> extends AbstractClientBuilder<I,O,ClientBuilder<I,O>,RxClient<I,O>>
RxClientImpl
bootstrap, channelFactory, clientConfig, connectionFactory, eventListenersFactory, eventLoopGroup, eventsSubject, pipelineConfigurator, poolBuilder, serverInfo, socketChannel, wireLogginLevel
Constructor and Description |
---|
ClientBuilder(io.netty.bootstrap.Bootstrap bootstrap,
java.lang.String host,
int port,
ClientConnectionFactory<O,I,? extends ObservableConnection<O,I>> connectionFactory,
ClientChannelFactory<O,I> factory) |
ClientBuilder(io.netty.bootstrap.Bootstrap bootstrap,
java.lang.String host,
int port,
ConnectionPoolBuilder<O,I> poolBuilder) |
ClientBuilder(java.lang.String host,
int port) |
ClientBuilder(java.lang.String host,
int port,
io.netty.bootstrap.Bootstrap bootstrap) |
Modifier and Type | Method and Description |
---|---|
protected RxClient<I,O> |
createClient() |
protected io.netty.channel.EventLoopGroup |
defaultEventloop(java.lang.Class<? extends io.netty.channel.Channel> socketChannel) |
protected java.lang.Class<? extends io.netty.channel.socket.SocketChannel> |
defaultSocketChannelClass() |
protected java.lang.String |
generatedNamePrefix() |
protected MetricEventsListener<? extends ClientMetricsEvent<ClientMetricsEvent.EventType>> |
newMetricsListener(MetricEventsListenerFactory factory,
RxClient<I,O> client) |
appendPipelineConfigurator, build, channel, channelOption, config, defaultChannelOptions, defaultTcpOptions, defaultUdpOptions, enableWireLogging, eventloop, getBootstrap, getEventsSubject, getOrCreateName, getPipelineConfigurator, getPoolBuilder, getServerInfo, pipelineConfigurator, returnBuilder, withChannelFactory, withConnectionPoolLimitStrategy, withIdleConnectionsTimeoutMillis, withMaxConnections, withMetricEventsListenerFactory, withName, withNoConnectionPooling, withNoIdleConnectionCleanup, withPoolIdleCleanupScheduler, withSslEngineFactory
public ClientBuilder(java.lang.String host, int port)
public ClientBuilder(java.lang.String host, int port, io.netty.bootstrap.Bootstrap bootstrap)
public ClientBuilder(io.netty.bootstrap.Bootstrap bootstrap, java.lang.String host, int port, ClientConnectionFactory<O,I,? extends ObservableConnection<O,I>> connectionFactory, ClientChannelFactory<O,I> factory)
public ClientBuilder(io.netty.bootstrap.Bootstrap bootstrap, java.lang.String host, int port, ConnectionPoolBuilder<O,I> poolBuilder)
protected RxClient<I,O> createClient()
createClient
in class AbstractClientBuilder<I,O,ClientBuilder<I,O>,RxClient<I,O>>
protected java.lang.String generatedNamePrefix()
generatedNamePrefix
in class AbstractClientBuilder<I,O,ClientBuilder<I,O>,RxClient<I,O>>
protected java.lang.Class<? extends io.netty.channel.socket.SocketChannel> defaultSocketChannelClass()
defaultSocketChannelClass
in class AbstractClientBuilder<I,O,ClientBuilder<I,O>,RxClient<I,O>>
protected io.netty.channel.EventLoopGroup defaultEventloop(java.lang.Class<? extends io.netty.channel.Channel> socketChannel)
defaultEventloop
in class AbstractClientBuilder<I,O,ClientBuilder<I,O>,RxClient<I,O>>
protected MetricEventsListener<? extends ClientMetricsEvent<ClientMetricsEvent.EventType>> newMetricsListener(MetricEventsListenerFactory factory, RxClient<I,O> client)
newMetricsListener
in class AbstractClientBuilder<I,O,ClientBuilder<I,O>,RxClient<I,O>>