public final class TransportObservers
extends java.lang.Object
TransportObserver
s.Modifier and Type | Method and Description |
---|---|
static TransportObserver |
asSafeObserver(TransportObserver observer)
Coverts passed
TransportObserver to a safe version that catches and logs all exceptions, but does not
rethrow them. |
static TransportObserver |
combine(TransportObserver... other)
Combines multiple
TransportObserver s into a single TransportObserver . |
public static TransportObserver asSafeObserver(TransportObserver observer)
TransportObserver
to a safe version that catches and logs all exceptions, but does not
rethrow them.observer
- TransportObserver
to convertTransportObserver
that catches and logs all exceptions, but does not
rethrow them.public static TransportObserver combine(TransportObserver... other)
TransportObserver
s into a single TransportObserver
.other
- TransportObserver
s to combineTransportObserver
that delegates all invocations to the provided TransportObserver
s