I - Type read from the connection held by the event.O - Type written to the connection held by the event.public static final class ClientConnectionToChannelBridge.ConnectionReuseEvent<I,O> extends java.lang.Object implements ConnectionInputSubscriberResetEvent
Connection reuse. This event should be used for clients that pool
connections. For every reuse of a connection (connection creation still uses ChannelSubscriberEvent)
the corresponding subscriber must be sent via this event.
Every instance of this event resets the older subscriber attached to the connection and connection input. This
means sending an Observer.onCompleted() to both of those subscribers. It is assumed that the actual
Subscriber is similar to SafeSubscriber which can handle duplicate terminal events.| Constructor and Description |
|---|
ConnectionReuseEvent(rx.Subscriber<? super PooledConnection<I,O>> subscriber,
PooledConnection<I,O> pooledConnection) |
| Modifier and Type | Method and Description |
|---|---|
PooledConnection<I,O> |
getPooledConnection() |
rx.Subscriber<? super PooledConnection<I,O>> |
getSubscriber() |
public ConnectionReuseEvent(rx.Subscriber<? super PooledConnection<I,O>> subscriber, PooledConnection<I,O> pooledConnection)
public rx.Subscriber<? super PooledConnection<I,O>> getSubscriber()
public PooledConnection<I,O> getPooledConnection()