public static interface PooledConnection.Owner
PooledConnection to which any instance of PooledConnection must
be returned after use.| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Void> |
discard(PooledConnection<?,?> connection)
Discards the passed connection from the pool.
|
rx.Observable<java.lang.Void> |
release(PooledConnection<?,?> connection)
Releases the passed connection back to the owner, for reuse.
|
rx.Observable<java.lang.Void> release(PooledConnection<?,?> connection)
connection - Connection to be released.Observable representing result of the release. Every subscription to this, releases the
connection.rx.Observable<java.lang.Void> discard(PooledConnection<?,?> connection)
connection - The connection to discard.Observable indicating the result of the discard (which usually results in a close()).
Every subscription to this Observable will discard the connection.