public class TcpClientInterceptorChainImpl<W,R> extends java.lang.Object implements TcpClientInterceptorChain<W,R>
| Constructor and Description |
|---|
TcpClientInterceptorChainImpl(io.reactivex.netty.client.ConnectionProvider<W,R> cp,
TcpClientEventPublisher ep) |
| Modifier and Type | Method and Description |
|---|---|
InterceptingTcpClient<W,R> |
finish()
Finish the addition of interceptors and create a new client instance.
|
TcpClientInterceptorChain<W,R> |
next(Interceptor<W,R> i)
Adds a simple interceptor that does not change the type of objects read/written to a connection.
|
<RR> TcpClientInterceptorChain<W,RR> |
nextWithReadTransform(TransformingInterceptor<W,R,W,RR> i)
Adds an interceptor that changes the type of objects read from the connections created by the client provided by
this chain.
|
<WW,RR> TcpClientInterceptorChain<WW,RR> |
nextWithTransform(TransformingInterceptor<W,R,WW,RR> i)
Adds an interceptor that changes the type of objects read and written to the connections created by the client
provided by this chain.
|
<WW> TcpClientInterceptorChain<WW,R> |
nextWithWriteTransform(TransformingInterceptor<W,R,WW,R> i)
Adds an interceptor that changes the type of objects written to the connections created by the client provided by
this chain.
|
public TcpClientInterceptorChainImpl(io.reactivex.netty.client.ConnectionProvider<W,R> cp, TcpClientEventPublisher ep)
public TcpClientInterceptorChain<W,R> next(Interceptor<W,R> i)
TcpClientInterceptorChainnext in interface TcpClientInterceptorChain<W,R>i - Interceptor to add.thispublic <RR> TcpClientInterceptorChain<W,RR> nextWithReadTransform(TransformingInterceptor<W,R,W,RR> i)
TcpClientInterceptorChainnextWithReadTransform in interface TcpClientInterceptorChain<W,R>i - Interceptor to add.public <WW> TcpClientInterceptorChain<WW,R> nextWithWriteTransform(TransformingInterceptor<W,R,WW,R> i)
TcpClientInterceptorChainnextWithWriteTransform in interface TcpClientInterceptorChain<W,R>i - Interceptor to add.public <WW,RR> TcpClientInterceptorChain<WW,RR> nextWithTransform(TransformingInterceptor<W,R,WW,RR> i)
TcpClientInterceptorChainnextWithTransform in interface TcpClientInterceptorChain<W,R>i - Interceptor to add.public InterceptingTcpClient<W,R> finish()
TcpClientInterceptorChainfinish in interface TcpClientInterceptorChain<W,R>