Class XdsCentralDogmaBuilder

java.lang.Object
com.linecorp.centraldogma.client.AbstractCentralDogmaBuilder<XdsCentralDogmaBuilder>
com.linecorp.centraldogma.client.armeria.xds.XdsCentralDogmaBuilder

@UnstableApi public final class XdsCentralDogmaBuilder extends AbstractCentralDogmaBuilder<XdsCentralDogmaBuilder>
Builds a CentralDogma client based on an Armeria HTTP client. This client differs from ArmeriaCentralDogma in that making requests is done in two phases.
  1. An xDS request is made to xDS servers to fetch a Listener resource which represents how to connect to CentralDogma servers.
  2. Actual CentralDogma client requests are made based on the watched Listener resource.
Because connection to the actual CentralDogma is determined by the watched Listener, AbstractCentralDogmaBuilder.hosts() and AbstractCentralDogmaBuilder.isUseTls() apply to connecting to the bootstrap only. However, because Armeria's xDS implementation isn't complete, the following parameters are applied to both xDS and Central Dogma requests.

Note that this module is considered experimental and subject to behavioral change.