I - The type of the object that is read from a new connection.O - The type of objects that are written to a new connection.public interface ConnectionHandler<I,O>
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<java.lang.Void> |
handle(ObservableConnection<I,O> newConnection)
Invoked whenever a new connection is established.
|
rx.Observable<java.lang.Void> handle(ObservableConnection<I,O> newConnection)
newConnection - Newly established connection.Observable, unsubscribe from which should cancel the handling.