インターフェース AutoTimer
- すべての既知の実装クラス:
PropertiesAutoTimer
- 関数インターフェース:
- これは関数インターフェースであるため、ラムダ式またはメソッド参照の割り当てターゲットとして使用できます。
- 導入:
- 4.0.0
- 作成者:
- Tadaya Tsuyukubo, Stephane Nicoll, Phillip Webb
フィールド概要
フィールド方法の概要
修飾子と型メソッド説明voidapply(Timer.Builder builder) 指定されたTimer.Builderに自動タイマー設定を適用するために呼び出されます。static voidapply(@Nullable AutoTimer autoTimer, StringSE metricName, SetSE<Timed> annotations, ConsumerSE<Timer.Builder> action) default Timer.Builder自動タイマー設定appliedを備えた新しいTimer.Builderを作成するファクトリメソッド。default Timer.Builderbuilder(SupplierSE<Timer.Builder> supplier) 自動タイマー設定appliedを備えた新しいTimer.Builderを作成するファクトリメソッド。default boolean自動タイマーが有効で、メトリクスを記録する必要があるかどうかを返します。
フィールドの詳細
ENABLED
DISABLED
方法の詳細
isEnabled
default boolean isEnabled()自動タイマーが有効で、メトリクスを記録する必要があるかどうかを返します。- 戻り値:
- 自動タイマーが有効になっている場合
builder
自動タイマー設定appliedを備えた新しいTimer.Builderを作成するファクトリメソッド。- パラメーター:
name- タイマーの名前- 戻り値:
- 自動設定が適用された新しいビルダーインスタンス
builder
自動タイマー設定appliedを備えた新しいTimer.Builderを作成するファクトリメソッド。- パラメーター:
supplier- ビルダーサプライヤー- 戻り値:
- 自動設定が適用された新しいビルダーインスタンス
apply
指定されたTimer.Builderに自動タイマー設定を適用するために呼び出されます。- パラメーター:
builder- 設定を適用するビルダー
apply
static void apply(@Nullable AutoTimer autoTimer, StringSE metricName, SetSE<Timed> annotations, ConsumerSE<Timer.Builder> action)