Package io.servicetalk.transport.api
Class TransportObservers
- java.lang.Object
-
- io.servicetalk.transport.api.TransportObservers
-
public final class TransportObservers extends java.lang.Object
A factory to create differentTransportObserver
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransportObserver
asSafeObserver(TransportObserver observer)
Coverts passedTransportObserver
to a safe version that catches and logs all exceptions, but does not rethrow them.static TransportObserver
combine(TransportObserver... other)
Combines multipleTransportObserver
s into a singleTransportObserver
.
-
-
-
Method Detail
-
asSafeObserver
public static TransportObserver asSafeObserver(TransportObserver observer)
Coverts passedTransportObserver
to a safe version that catches and logs all exceptions, but does not rethrow them.- Parameters:
observer
-TransportObserver
to convert- Returns:
- a safe version of the passed
TransportObserver
that catches and logs all exceptions, but does not rethrow them.
-
combine
public static TransportObserver combine(TransportObserver... other)
Combines multipleTransportObserver
s into a singleTransportObserver
.- Parameters:
other
-TransportObserver
s to combine- Returns:
- a
TransportObserver
that delegates all invocations to the providedTransportObserver
s
-
-