Interface ClientStreamMetrics
public interface ClientStreamMetrics
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaggregatedStreamCount(int count) Invoked whenever the count of streams in the registry changesdefault voidclientCount(int count) Invoked whenever the total count of clients in the registry changesstatic ClientStreamMetricsnoop()default voidobserveAggregatedClientCount(int count) Invoked whenever the count of streams in an aggregated stream changes.default voidInvoked if pushing a payload to a stream faileddefault voidInvoked after a payload is successfully pushed to a streamdefault voidpushTryFailed(ErrorCode code) Invoked when a push failed for a given client, regardless of whether it ultimately succeeded with another.default voidserverCount(int count) Invoked whenever the count of known servers in the registry changes
-
Method Details
-
serverCount
default void serverCount(int count) Invoked whenever the count of known servers in the registry changes -
clientCount
default void clientCount(int count) Invoked whenever the total count of clients in the registry changes -
aggregatedStreamCount
default void aggregatedStreamCount(int count) Invoked whenever the count of streams in the registry changes -
observeAggregatedClientCount
default void observeAggregatedClientCount(int count) Invoked whenever the count of streams in an aggregated stream changes. The expected implementations of this metric is an histogram, or something which records observations individually. -
pushSucceeded
default void pushSucceeded()Invoked after a payload is successfully pushed to a stream -
pushFailed
default void pushFailed()Invoked if pushing a payload to a stream failed -
pushTryFailed
Invoked when a push failed for a given client, regardless of whether it ultimately succeeded with another.- Parameters:
code- the error code for the given attempt
-
noop
-