Class ModeledFrameworkBuilder<T>
java.lang.Object
org.apache.curator.x.async.modeled.ModeledFrameworkBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a new ModeledFramework instancewatched()
Add watchers as appropriate to the Modeled Curator's ZNode usingWatchMode.stateChangeAndSuccess
Add watchers as appropriate using the given watchMode to the Modeled Curator's ZNodewatched
(WatchMode watchMode, UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter) Add watchers as appropriate using the given watchMode and filter to the Modeled Curator's ZNodewithClient
(AsyncCuratorFramework client) Change the client to usewithModelSpec
(ModelSpec<T> modelSpec) Change the model spec to usewithOptions
(Set<ModeledOptions> modeledOptions) Change the modeled optionswithResultFilter
(UnaryOperator<CuratorEvent> resultFilter) Use the given result filter for operations on the Modeled Curator's ZNodewithUnhandledErrorListener
(UnhandledErrorListener unhandledErrorListener) Use the given unhandledErrorListener for operations on the Modeled Curator's ZNode
-
Method Details
-
build
Build a new ModeledFramework instance- Returns:
- new ModeledFramework instance
-
watched
Add watchers as appropriate to the Modeled Curator's ZNode usingWatchMode.stateChangeAndSuccess
- Returns:
- this for chaining
- See Also:
-
watched
Add watchers as appropriate using the given watchMode to the Modeled Curator's ZNode- Parameters:
watchMode
- watcher style- Returns:
- this for chaining
- See Also:
-
watched
public ModeledFrameworkBuilder<T> watched(WatchMode watchMode, UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter) Add watchers as appropriate using the given watchMode and filter to the Modeled Curator's ZNode- Parameters:
watchMode
- watcher stylewatcherFilter
- filter- Returns:
- this for chaining
- See Also:
-
withUnhandledErrorListener
public ModeledFrameworkBuilder<T> withUnhandledErrorListener(UnhandledErrorListener unhandledErrorListener) Use the given unhandledErrorListener for operations on the Modeled Curator's ZNode- Parameters:
unhandledErrorListener
- listener- Returns:
- this for chaining
-
withResultFilter
Use the given result filter for operations on the Modeled Curator's ZNode- Parameters:
resultFilter
- filter- Returns:
- this for chaining
-
withModelSpec
Change the model spec to use- Parameters:
modelSpec
- model spec- Returns:
- this for chaining
-
withClient
Change the client to use- Parameters:
client
- new client- Returns:
- this for chaining
-
withOptions
Change the modeled options- Parameters:
modeledOptions
- new options set- Returns:
- this for chaining
-