public interface ServiceCacheBuilder<T>
| Modifier and Type | Method | Description |
|---|---|---|
ServiceCache<T> |
build() |
Return a new service cache with the current settings
|
ServiceCacheBuilder<T> |
executorService(java.util.concurrent.ExecutorService executorService) |
Optional ExecutorService to use for the cache's background thread.
|
ServiceCacheBuilder<T> |
executorService(org.apache.curator.utils.CloseableExecutorService executorService) |
Optional CloseableExecutorService to use for the cache's background thread.
|
ServiceCacheBuilder<T> |
name(java.lang.String name) |
The name of the service to cache (required)
|
ServiceCacheBuilder<T> |
threadFactory(java.util.concurrent.ThreadFactory threadFactory) |
Optional thread factory to use for the cache's internal thread.
|
ServiceCache<T> build()
ServiceCacheBuilder<T> name(java.lang.String name)
name - service nameServiceCacheBuilder<T> threadFactory(java.util.concurrent.ThreadFactory threadFactory)
threadFactory - factoryServiceCacheBuilder<T> executorService(java.util.concurrent.ExecutorService executorService)
executorService - executor serviceServiceCacheBuilder<T> executorService(org.apache.curator.utils.CloseableExecutorService executorService)
executorService - an instance of CloseableExecutorServiceCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.