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
-
Method Summary
Modifier and TypeMethodDescriptionprotected final ScheduledExecutorService
Returns theScheduledExecutorService
dedicated to the execution of blocking tasks or invocations.final B
blockingTaskExecutor
(ScheduledExecutorService blockingTaskExecutor) Sets theScheduledExecutorService
dedicated to the execution of blocking tasks or invocations.final B
clientConfigurator
(ArmeriaClientConfigurator clientConfigurator) Sets theArmeriaClientConfigurator
that will configure an underlying Armeria client which performs the actual socket I/O.protected final ClientFactory
Returns theClientFactory
that will create an underlying Armeria client which performs the actual socket I/O.final B
clientFactory
(ClientFactory clientFactory) Sets theClientFactory
that will create an underlying Armeria client which performs the actual socket I/O.final B
dnsAddressEndpointGroupConfigurator
(DnsAddressEndpointGroupConfigurator dnsAddressEndpointGroupConfigurator) Sets theDnsAddressEndpointGroupConfigurator
that will configure the DNS lookup done by the Armeria client.protected final EndpointGroup
Returns theEndpointGroup
this client will connect to, derived fromAbstractCentralDogmaBuilder.hosts()
.final B
healthCheckInterval
(Duration healthCheckInterval) Sets the interval between health check requests.final B
healthCheckIntervalMillis
(long healthCheckIntervalMillis) Sets the interval between health check requests in milliseconds.protected final ClientBuilder
newClientBuilder
(String scheme, EndpointGroup endpointGroup, Consumer<ClientBuilder> customizer, String path) Returns a newly createdClientBuilder
configured with the specifiedcustomizer
and then with theArmeriaClientConfigurator
specified withclientConfigurator(ArmeriaClientConfigurator)
.Methods inherited from class com.linecorp.centraldogma.client.AbstractCentralDogmaBuilder
accessToken, accessToken, host, host, hosts, isUseTls, maxNumRetriesOnReplicationLag, maxNumRetriesOnReplicationLag, profile, profile, profile, profile, profileResources, profileResources, retryIntervalOnReplicationLag, retryIntervalOnReplicationLagMillis, retryIntervalOnReplicationLagMillis, selectedProfile, self, uri, useTls, useTls
-
Constructor Details
-
AbstractArmeriaCentralDogmaBuilder
public AbstractArmeriaCentralDogmaBuilder()
-
-
Method Details
-
clientFactory
Returns theClientFactory
that will create an underlying Armeria client which performs the actual socket I/O. -
clientFactory
Sets theClientFactory
that will create an underlying Armeria client which performs the actual socket I/O. -
clientConfigurator
Sets theArmeriaClientConfigurator
that will configure an underlying Armeria client which performs the actual socket I/O. -
dnsAddressEndpointGroupConfigurator
public final B dnsAddressEndpointGroupConfigurator(DnsAddressEndpointGroupConfigurator dnsAddressEndpointGroupConfigurator) Sets theDnsAddressEndpointGroupConfigurator
that 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.ZERO
disables health check requests.
-
healthCheckIntervalMillis
Sets the interval between health check requests in milliseconds.- Parameters:
healthCheckIntervalMillis
- the interval between health check requests in milliseconds.0
disables health check requests.
-
endpointGroup
Returns theEndpointGroup
this client will connect to, derived fromAbstractCentralDogmaBuilder.hosts()
.- Throws:
UnknownHostException
- if failed to resolve the host names from the DNS servers
-
blockingTaskExecutor
Returns theScheduledExecutorService
dedicated to the execution of blocking tasks or invocations. -
blockingTaskExecutor
Sets theScheduledExecutorService
dedicated to the execution of blocking tasks or invocations. If not set, the common pool is used. TheScheduledExecutorService
which 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 createdClientBuilder
configured with the specifiedcustomizer
and then with theArmeriaClientConfigurator
specified withclientConfigurator(ArmeriaClientConfigurator)
.
-