Interface CuratorCacheBuilder


public interface CuratorCacheBuilder
  • Method Details

    • withOptions

      CuratorCacheBuilder withOptions(CuratorCache.Options... options)
      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

      CuratorCacheBuilder withExceptionHandler(Consumer<Exception> exceptionHandler)
      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