Interface CuratorCacheBuilder
public interface CuratorCacheBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Return a new Curator Cache based on the builder methods that have been calledwithExceptionHandler
(Consumer<Exception> exceptionHandler) By default any unexpected exception is handled by logging the exception.withOptions
(CuratorCache.Options... options) withStorage
(CuratorCacheStorage storage) Alternate storage to use.
-
Method Details
-
withOptions
- Parameters:
options
- any options- Returns:
- this
-
withStorage
Alternate storage to use. If not specified,CuratorCacheStorage.standard()
is used- Parameters:
storage
- storage instance to use- Returns:
- this
-
withExceptionHandler
By default any unexpected exception is handled by logging the exception. You can change so that a handler is called instead. Under normal circumstances, this shouldn't be necessary.- Parameters:
exceptionHandler
- exception handler to use
-
build
CuratorCache build()Return a new Curator Cache based on the builder methods that have been called- Returns:
- new Curator Cache
-