public interface CuratorCacheBuilder
| Modifier and Type | Method and Description |
|---|---|
CuratorCache |
build()
Return a new Curator Cache based on the builder methods that have been called
|
CuratorCacheBuilder |
withExceptionHandler(Consumer<Exception> exceptionHandler)
By default any unexpected exception is handled by logging the exception.
|
CuratorCacheBuilder |
withOptions(CuratorCache.Options... options) |
CuratorCacheBuilder |
withStorage(CuratorCacheStorage storage)
Alternate storage to use.
|
CuratorCacheBuilder withOptions(CuratorCache.Options... options)
options - any optionsCuratorCacheBuilder withStorage(CuratorCacheStorage storage)
CuratorCacheStorage.standard() is usedstorage - storage instance to useCuratorCacheBuilder withExceptionHandler(Consumer<Exception> exceptionHandler)
exceptionHandler - exception handler to useCuratorCache build()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.