Package zipkin2.elasticsearch
Interface ElasticsearchStorage.LazyHttpClient
- 
- All Superinterfaces:
- AutoCloseable,- Closeable,- Supplier<com.linecorp.armeria.client.WebClient>
 - Enclosing class:
- ElasticsearchStorage
 
 public static interface ElasticsearchStorage.LazyHttpClient extends Supplier<com.linecorp.armeria.client.WebClient>, Closeable This defers creation of anWebClient. This is needed because routinely, I/O occurs in constructors and this can delay or cause startup to crash. For example, an underlyingEndpointGroupcould be delayed due to DNS, implicit api calls or health checks.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()com.linecorp.armeria.client.WebClientget()Lazily creates an instance of the http client configured to the correct elasticsearch host or cluster.StringtoString()This should return the initial endpoints in a single-string without resolving them.
 
- 
- 
- 
Method Detail- 
getcom.linecorp.armeria.client.WebClient get() Lazily creates an instance of the http client configured to the correct elasticsearch host or cluster. The same value should always be returned.
 - 
closedefault void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 
- 
 
-