use of reactor.netty.ConnectionObserver in project reactor-netty by reactor.
the class QuicTransport method streamObserve.
/**
* Set or add the given {@link ConnectionObserver} for each stream
*
* @param observer the {@link ConnectionObserver} addition
* @return a {@link QuicTransport} reference
*/
public T streamObserve(ConnectionObserver observer) {
Objects.requireNonNull(observer, "observer");
T dup = duplicate();
ConnectionObserver current = configuration().streamObserver;
dup.configuration().streamObserver = current == null ? observer : current.then(observer);
return dup;
}
Aggregations