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)
TcpClientInterceptorChain
next
in interface TcpClientInterceptorChain<W,R>
i
- Interceptor to add.this
public <RR> TcpClientInterceptorChain<W,RR> nextWithReadTransform(TransformingInterceptor<W,R,W,RR> i)
TcpClientInterceptorChain
nextWithReadTransform
in interface TcpClientInterceptorChain<W,R>
i
- Interceptor to add.public <WW> TcpClientInterceptorChain<WW,R> nextWithWriteTransform(TransformingInterceptor<W,R,WW,R> i)
TcpClientInterceptorChain
nextWithWriteTransform
in interface TcpClientInterceptorChain<W,R>
i
- Interceptor to add.public <WW,RR> TcpClientInterceptorChain<WW,RR> nextWithTransform(TransformingInterceptor<W,R,WW,RR> i)
TcpClientInterceptorChain
nextWithTransform
in interface TcpClientInterceptorChain<W,R>
i
- Interceptor to add.public InterceptingTcpClient<W,R> finish()
TcpClientInterceptorChain
finish
in interface TcpClientInterceptorChain<W,R>