Package io.servicetalk.http.utils
Class HttpLifecycleObservers
java.lang.Object
io.servicetalk.http.utils.HttpLifecycleObservers
A factory to create different
HttpLifecycleObserver
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpLifecycleObserver
combine
(HttpLifecycleObserver first, HttpLifecycleObserver second) Combines multipleHttpLifecycleObserver
s into a singleHttpLifecycleObserver
.static HttpLifecycleObserver
combine
(HttpLifecycleObserver first, HttpLifecycleObserver second, HttpLifecycleObserver... others) Combines multipleHttpLifecycleObserver
s into a singleHttpLifecycleObserver
.static HttpLifecycleObserver
Logging implementation ofHttpLifecycleObserver
.
-
Method Details
-
logging
Logging implementation ofHttpLifecycleObserver
.- Parameters:
loggerName
- The name of the logger to uselogLevel
- The level to log at- Returns:
HttpLifecycleObserver
that logs events at the specifiedLogLevel
-
combine
public static HttpLifecycleObserver combine(HttpLifecycleObserver first, HttpLifecycleObserver second) Combines multipleHttpLifecycleObserver
s into a singleHttpLifecycleObserver
.- Parameters:
first
-HttpLifecycleObserver
to combinesecond
-HttpLifecycleObserver
to combine- Returns:
- a
HttpLifecycleObserver
that delegates all invocations to the providedHttpLifecycleObserver
s
-
combine
public static HttpLifecycleObserver combine(HttpLifecycleObserver first, HttpLifecycleObserver second, HttpLifecycleObserver... others) Combines multipleHttpLifecycleObserver
s into a singleHttpLifecycleObserver
.- Parameters:
first
-HttpLifecycleObserver
to combinesecond
-HttpLifecycleObserver
to combineothers
-HttpLifecycleObserver
s to combine- Returns:
- a
HttpLifecycleObserver
that delegates all invocations to the providedHttpLifecycleObserver
s
-