@Component(value="elasticSearchProperties")
@ConfigurationProperties(prefix="scholix.elastic")
public class ElasticSearchProperties
extends org.apache.commons.pool2.impl.GenericObjectPoolConfig
DEFAULT_MAX_IDLE, DEFAULT_MAX_TOTAL, DEFAULT_MIN_IDLEDEFAULT_BLOCK_WHEN_EXHAUSTED, DEFAULT_EVICTION_POLICY_CLASS_NAME, DEFAULT_EVICTOR_SHUTDOWN_TIMEOUT_MILLIS, DEFAULT_FAIRNESS, DEFAULT_JMX_ENABLE, DEFAULT_JMX_NAME_BASE, DEFAULT_JMX_NAME_PREFIX, DEFAULT_LIFO, DEFAULT_MAX_WAIT_MILLIS, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_CREATE, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS| Constructor and Description |
|---|
ElasticSearchProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClusterNodes()
Gets cluster nodes.
|
long |
getConnectionTimeout()
Gets connection timeout.
|
String |
getIndexName()
Gets index name.
|
long |
getSocketTimeout()
Gets socket timeout.
|
ElasticSearchProperties |
setClusterNodes(String clusterNodes)
Sets cluster nodes.
|
ElasticSearchProperties |
setConnectionTimeout(long connectionTimeout)
Sets connection timeout.
|
ElasticSearchProperties |
setIndexName(String indexName)
Sets index name.
|
ElasticSearchProperties |
setSocketTimeout(long socketTimeout)
Sets socket timeout.
|
clone, getMaxIdle, getMaxTotal, getMinIdle, setMaxIdle, setMaxTotal, setMinIdle, toStringAppendFieldsgetBlockWhenExhausted, getEvictionPolicy, getEvictionPolicyClassName, getEvictorShutdownTimeoutMillis, getFairness, getJmxEnabled, getJmxNameBase, getJmxNamePrefix, getLifo, getMaxWaitMillis, getMinEvictableIdleTimeMillis, getNumTestsPerEvictionRun, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnCreate, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, setBlockWhenExhausted, setEvictionPolicy, setEvictionPolicyClassName, setEvictorShutdownTimeoutMillis, setFairness, setJmxEnabled, setJmxNameBase, setJmxNamePrefix, setLifo, setMaxWaitMillis, setMinEvictableIdleTimeMillis, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setTestOnBorrow, setTestOnCreate, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillispublic String getClusterNodes()
public ElasticSearchProperties setClusterNodes(String clusterNodes)
clusterNodes - the cluster nodespublic String getIndexName()
public ElasticSearchProperties setIndexName(String indexName)
indexName - the index namepublic long getConnectionTimeout()
public ElasticSearchProperties setConnectionTimeout(long connectionTimeout)
connectionTimeout - the connection timeoutpublic long getSocketTimeout()
public ElasticSearchProperties setSocketTimeout(long socketTimeout)
socketTimeout - the socket timeoutCopyright © 2025. All rights reserved.