public static final class ProximityClient.ClientParams.Builder extends Object
ProximityClient.ClientParams
. Builder instances are mutable.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProximityClient.ClientParams |
build() |
ProximityClient.ClientParams.Builder |
withApiKey(String apiKey)
the API key, available via http://factual.com
|
ProximityClient.ClientParams.Builder |
withDeploymentTags(List<String> deploymentTags)
specifies which indices should be loaded in this client.
|
ProximityClient.ClientParams.Builder |
withMaxIndexesToQuery(int maxIndexesToQuery)
ProximityClient will not query more than this many indexes.
|
ProximityClient.ClientParams.Builder |
withMaxMemory(long maxMemory)
the maximum memory, in bytes, which will be used by the client.
|
ProximityClient.ClientParams.Builder |
withOrganizationId(String organizationId)
the organization-id provided by Factual
|
ProximityClient.ClientParams.Builder |
withPath(String path)
the filesystem path for the directory which will be used for caching data files
|
ProximityClient.ClientParams.Builder |
withSecretKey(String secretKey)
the secret key, available via http://factual.com
|
ProximityClient.ClientParams.Builder |
withThreadPoolSize(int threadPoolSize)
the size of the threadpool to use for queries to
ProximityClient.testMultiplePoints(List, int) and
ProximityClient.testPoint(double, double, boolean, boolean) . |
public ProximityClient.ClientParams.Builder withOrganizationId(String organizationId)
public ProximityClient.ClientParams.Builder withApiKey(String apiKey)
public ProximityClient.ClientParams.Builder withSecretKey(String secretKey)
public ProximityClient.ClientParams.Builder withPath(String path)
public ProximityClient.ClientParams.Builder withMaxMemory(long maxMemory)
public ProximityClient.ClientParams.Builder withDeploymentTags(List<String> deploymentTags)
public ProximityClient.ClientParams.Builder withThreadPoolSize(int threadPoolSize)
ProximityClient.testMultiplePoints(List, int)
and
ProximityClient.testPoint(double, double, boolean, boolean)
. the special value -1 means to choose a reasonable
number based on the number of CPUs; setting to 0 will allocate no threadpool and cause calls to these
methods to throw an exception.public ProximityClient.ClientParams.Builder withMaxIndexesToQuery(int maxIndexesToQuery)
public ProximityClient.ClientParams build()