public interface CuratorCacheBridgeBuilder
Modifier and Type | Method and Description |
---|---|
CuratorCacheBridge |
build()
Return a new Curator Cache Bridge based on the builder methods that have been called
|
CuratorCacheBridgeBuilder |
withDataNotCached()
The bridge cache will not retain the data bytes.
|
CuratorCacheBridgeBuilder |
withExecutorService(ExecutorService executorService)
If the old
TreeCache is used by the bridge
(i.e. |
CuratorCacheBridgeBuilder |
withOptions(CuratorCache.Options... options) |
CuratorCacheBridgeBuilder withOptions(CuratorCache.Options... options)
options
- any optionsCuratorCacheBridgeBuilder withDataNotCached()
null
for ChildData.getData()
CuratorCacheBridgeBuilder withExecutorService(ExecutorService executorService)
TreeCache
is used by the bridge
(i.e. you are using ZooKeeper 3.5.x) then this executor service is passed to TreeCache.Builder.setExecutor(java.util.concurrent.ExecutorService)
.
For CuratorCache
this is not used and will be ignored (a warning will be logged).executorService
- executor to use for ZooKeeper 3.5.xCuratorCacheBridge build()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.