Interface CuratorCacheBridgeBuilder
-
public interface CuratorCacheBridgeBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CuratorCacheBridgebuild()Return a new Curator Cache Bridge based on the builder methods that have been calledCuratorCacheBridgeBuilderwithDataNotCached()The bridge cache will not retain the data bytes.CuratorCacheBridgeBuilderwithExecutorService(java.util.concurrent.ExecutorService executorService)If the oldTreeCacheis used by the bridge (i.e.CuratorCacheBridgeBuilderwithOptions(CuratorCache.Options... options)
-
-
-
Method Detail
-
withOptions
CuratorCacheBridgeBuilder withOptions(CuratorCache.Options... options)
- 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 returnnullforChildData.getData()- Returns:
- this
-
withExecutorService
CuratorCacheBridgeBuilder withExecutorService(java.util.concurrent.ExecutorService executorService)
If the oldTreeCacheis 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). ForCuratorCachethis 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
-
-