Interface DiscoverInstancesResponse.Builder

  • Method Details

    • instances

      A complex type that contains one HttpInstanceSummary for each registered instance.

      Parameters:
      instances - A complex type that contains one HttpInstanceSummary for each registered instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      A complex type that contains one HttpInstanceSummary for each registered instance.

      Parameters:
      instances - A complex type that contains one HttpInstanceSummary for each registered instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      A complex type that contains one HttpInstanceSummary for each registered instance.

      This is a convenience method that creates an instance of the HttpInstanceSummary.Builder avoiding the need to create one manually via HttpInstanceSummary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to instances(List<HttpInstanceSummary>).

      Parameters:
      instances - a consumer that will call methods on HttpInstanceSummary.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instancesRevision

      DiscoverInstancesResponse.Builder instancesRevision(Long instancesRevision)

      The increasing revision associated to the response Instances list. If a new instance is registered or deregistered, the InstancesRevision updates. The health status updates don't update InstancesRevision.

      Parameters:
      instancesRevision - The increasing revision associated to the response Instances list. If a new instance is registered or deregistered, the InstancesRevision updates. The health status updates don't update InstancesRevision.
      Returns:
      Returns a reference to this object so that method calls can be chained together.