Package io.servicetalk.transport.api
Class TransportObservers
java.lang.Object
io.servicetalk.transport.api.TransportObservers
A factory to create different
TransportObservers.-
Method Summary
Modifier and TypeMethodDescriptionstatic TransportObserverasSafeObserver(TransportObserver observer) Coverts passedTransportObserverto a safe version that catches and logs all exceptions, but does not rethrow them.static TransportObservercombine(TransportObserver... other) Combines multipleTransportObservers into a singleTransportObserver.
-
Method Details
-
asSafeObserver
Coverts passedTransportObserverto a safe version that catches and logs all exceptions, but does not rethrow them.- Parameters:
observer-TransportObserverto convert- Returns:
- a safe version of the passed
TransportObserverthat catches and logs all exceptions, but does not rethrow them.
-
combine
Combines multipleTransportObservers into a singleTransportObserver.- Parameters:
other-TransportObservers to combine- Returns:
- a
TransportObserverthat delegates all invocations to the providedTransportObservers
-