Interface CuratorCacheBridgeBuilder
public interface CuratorCacheBridgeBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Return a new Curator Cache Bridge based on the builder methods that have been calledThe bridge cache will not retain the data bytes.withExecutorService
(ExecutorService executorService) If the oldTreeCache
is used by the bridge (i.e.withOptions
(CuratorCache.Options... options)
-
Method Details
-
withOptions
- Parameters:
options
- any options- Returns:
- this
-
withDataNotCached
CuratorCacheBridgeBuilder withDataNotCached()The bridge cache will not retain the data bytes. i.e. ChildData objects returned by the cache will always returnnull
forChildData.getData()
- Returns:
- this
-
withExecutorService
If the oldTreeCache
is used by the bridge (i.e. you are using ZooKeeper 3.5.x) then this executor service is passed toTreeCache.Builder.setExecutor(java.util.concurrent.ExecutorService)
. ForCuratorCache
this is not used and will be ignored (a warning will be logged).- Parameters:
executorService
- executor to use for ZooKeeper 3.5.x- Returns:
- this
-
build
CuratorCacheBridge build()Return a new Curator Cache Bridge based on the builder methods that have been called- Returns:
- new Curator Cache Bridge
-