接口 NamedContributor<C>

类型参数:
C - the contributor type

public interface NamedContributor<C>
A single named health endpoint contributors (either HealthContributor or ReactiveHealthContributor).
从以下版本开始:
2.0.0
作者:
Phillip Webb
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    Returns the contributor instance.
    Returns the name of the contributor.
    static <C> NamedContributor<C>
    of(String name, C contributor)
     
  • 方法详细资料

    • getName

      String getName()
      Returns the name of the contributor.
      返回:
      the contributor name
    • getContributor

      C getContributor()
      Returns the contributor instance.
      返回:
      the contributor instance
    • of

      static <C> NamedContributor<C> of(String name, C contributor)