Class AbstractArmeriaCentralDogmaBuilder<B extends AbstractArmeriaCentralDogmaBuilder<B>>
java.lang.Object
com.linecorp.centraldogma.client.AbstractCentralDogmaBuilder<B>
com.linecorp.centraldogma.client.armeria.AbstractArmeriaCentralDogmaBuilder<B>
- Direct Known Subclasses:
ArmeriaCentralDogmaBuilder,LegacyCentralDogmaBuilder
public class AbstractArmeriaCentralDogmaBuilder<B extends AbstractArmeriaCentralDogmaBuilder<B>>
extends AbstractCentralDogmaBuilder<B>
Builds a
CentralDogma client.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ScheduledExecutorServiceReturns theScheduledExecutorServicededicated to the execution of blocking tasks or invocations.final BblockingTaskExecutor(ScheduledExecutorService blockingTaskExecutor) Sets theScheduledExecutorServicededicated to the execution of blocking tasks or invocations.final BclientConfigurator(ArmeriaClientConfigurator clientConfigurator) Sets theArmeriaClientConfiguratorthat will configure an underlying Armeria client which performs the actual socket I/O.protected final ClientFactoryReturns theClientFactorythat will create an underlying Armeria client which performs the actual socket I/O.final BclientFactory(ClientFactory clientFactory) Sets theClientFactorythat will create an underlying Armeria client which performs the actual socket I/O.final BdnsAddressEndpointGroupConfigurator(DnsAddressEndpointGroupConfigurator dnsAddressEndpointGroupConfigurator) Sets theDnsAddressEndpointGroupConfiguratorthat will configure the DNS lookup done by the Armeria client.protected final EndpointGroupReturns theEndpointGroupthis client will connect to, derived fromAbstractCentralDogmaBuilder.hosts().final BhealthCheckInterval(Duration healthCheckInterval) Sets the interval between health check requests.final BhealthCheckIntervalMillis(long healthCheckIntervalMillis) Sets the interval between health check requests in milliseconds.protected final ClientBuildernewClientBuilder(String scheme, EndpointGroup endpointGroup, Consumer<ClientBuilder> customizer, String path) Returns a newly createdClientBuilderconfigured with the specifiedcustomizerand then with theArmeriaClientConfiguratorspecified withclientConfigurator(ArmeriaClientConfigurator).Methods inherited from class com.linecorp.centraldogma.client.AbstractCentralDogmaBuilder
accessToken, accessToken, host, host, hosts, isUseTls, maxNumRetriesOnReplicationLag, maxNumRetriesOnReplicationLag, meterRegistry, meterRegistry, profile, profile, profile, profile, profileResources, profileResources, retryIntervalOnReplicationLag, retryIntervalOnReplicationLagMillis, retryIntervalOnReplicationLagMillis, selectedProfile, self, uri, useTls, useTls
-
Constructor Details
-
AbstractArmeriaCentralDogmaBuilder
public AbstractArmeriaCentralDogmaBuilder()
-
-
Method Details
-
clientFactory
Returns theClientFactorythat will create an underlying Armeria client which performs the actual socket I/O. -
clientFactory
Sets theClientFactorythat will create an underlying Armeria client which performs the actual socket I/O. -
clientConfigurator
Sets theArmeriaClientConfiguratorthat will configure an underlying Armeria client which performs the actual socket I/O. -
dnsAddressEndpointGroupConfigurator
public final B dnsAddressEndpointGroupConfigurator(DnsAddressEndpointGroupConfigurator dnsAddressEndpointGroupConfigurator) Sets theDnsAddressEndpointGroupConfiguratorthat will configure the DNS lookup done by the Armeria client. -
healthCheckInterval
Sets the interval between health check requests.- Parameters:
healthCheckInterval- the interval between health check requests.Duration.ZEROdisables health check requests.
-
healthCheckIntervalMillis
Sets the interval between health check requests in milliseconds.- Parameters:
healthCheckIntervalMillis- the interval between health check requests in milliseconds.0disables health check requests.
-
endpointGroup
Returns theEndpointGroupthis client will connect to, derived fromAbstractCentralDogmaBuilder.hosts().- Throws:
UnknownHostException- if failed to resolve the host names from the DNS servers
-
blockingTaskExecutor
Returns theScheduledExecutorServicededicated to the execution of blocking tasks or invocations. -
blockingTaskExecutor
Sets theScheduledExecutorServicededicated to the execution of blocking tasks or invocations. If not set, the common pool is used. TheScheduledExecutorServicewhich will be used for scheduling the tasks related with automatic retries and invoking the callbacks for watched changes. -
newClientBuilder
protected final ClientBuilder newClientBuilder(String scheme, EndpointGroup endpointGroup, Consumer<ClientBuilder> customizer, String path) Returns a newly createdClientBuilderconfigured with the specifiedcustomizerand then with theArmeriaClientConfiguratorspecified withclientConfigurator(ArmeriaClientConfigurator).
-