I
- The type of the object that is read from the channel created by this factory.O
- The type of objects that are written to the channel created by this factory.public class ClientChannelFactoryImpl<I,O> extends java.lang.Object implements ClientChannelFactory<I,O>
Modifier and Type | Field and Description |
---|---|
protected io.netty.bootstrap.Bootstrap |
clientBootstrap |
Constructor and Description |
---|
ClientChannelFactoryImpl(io.netty.bootstrap.Bootstrap clientBootstrap) |
ClientChannelFactoryImpl(io.netty.bootstrap.Bootstrap clientBootstrap,
MetricEventsSubject<ClientMetricsEvent<?>> eventsSubject) |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelFuture |
connect(rx.Subscriber<? super ObservableConnection<I,O>> subscriber,
RxClient.ServerInfo serverInfo,
ClientConnectionFactory<I,O,? extends ObservableConnection<I,O>> connectionFactory) |
void |
onNewConnection(ObservableConnection<I,O> newConnection,
rx.Subscriber<? super ObservableConnection<I,O>> subscriber) |
void |
useMetricEventsSubject(MetricEventsSubject<ClientMetricsEvent<?>> eventsSubject) |
public ClientChannelFactoryImpl(io.netty.bootstrap.Bootstrap clientBootstrap, MetricEventsSubject<ClientMetricsEvent<?>> eventsSubject)
public ClientChannelFactoryImpl(io.netty.bootstrap.Bootstrap clientBootstrap)
public io.netty.channel.ChannelFuture connect(rx.Subscriber<? super ObservableConnection<I,O>> subscriber, RxClient.ServerInfo serverInfo, ClientConnectionFactory<I,O,? extends ObservableConnection<I,O>> connectionFactory)
connect
in interface ClientChannelFactory<I,O>
public void onNewConnection(ObservableConnection<I,O> newConnection, rx.Subscriber<? super ObservableConnection<I,O>> subscriber)
onNewConnection
in interface ClientChannelFactory<I,O>
public void useMetricEventsSubject(MetricEventsSubject<ClientMetricsEvent<?>> eventsSubject)
useMetricEventsSubject
in interface ClientChannelFactory<I,O>