Class ModeledFrameworkBuilder<T>
- java.lang.Object
-
- org.apache.curator.x.async.modeled.ModeledFrameworkBuilder<T>
-
public class ModeledFrameworkBuilder<T> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModeledFramework<T>build()Build a new ModeledFramework instanceModeledFrameworkBuilder<T>watched()Add watchers as appropriate to the Modeled Curator's ZNode usingWatchMode.stateChangeAndSuccessModeledFrameworkBuilder<T>watched(WatchMode watchMode)Add watchers as appropriate using the given watchMode to the Modeled Curator's ZNodeModeledFrameworkBuilder<T>watched(WatchMode watchMode, java.util.function.UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)Add watchers as appropriate using the given watchMode and filter to the Modeled Curator's ZNodeModeledFrameworkBuilder<T>withClient(AsyncCuratorFramework client)Change the client to useModeledFrameworkBuilder<T>withModelSpec(ModelSpec<T> modelSpec)Change the model spec to useModeledFrameworkBuilder<T>withOptions(java.util.Set<ModeledOptions> modeledOptions)Change the modeled optionsModeledFrameworkBuilder<T>withResultFilter(java.util.function.UnaryOperator<org.apache.curator.framework.api.CuratorEvent> resultFilter)Use the given result filter for operations on the Modeled Curator's ZNodeModeledFrameworkBuilder<T>withUnhandledErrorListener(org.apache.curator.framework.api.UnhandledErrorListener unhandledErrorListener)Use the given unhandledErrorListener for operations on the Modeled Curator's ZNode
-
-
-
Method Detail
-
build
public ModeledFramework<T> build()
Build a new ModeledFramework instance- Returns:
- new ModeledFramework instance
-
watched
public ModeledFrameworkBuilder<T> watched()
Add watchers as appropriate to the Modeled Curator's ZNode usingWatchMode.stateChangeAndSuccess- Returns:
- this for chaining
- See Also:
AsyncStage.event()
-
watched
public ModeledFrameworkBuilder<T> watched(WatchMode watchMode)
Add watchers as appropriate using the given watchMode to the Modeled Curator's ZNode- Parameters:
watchMode- watcher style- Returns:
- this for chaining
- See Also:
AsyncStage.event()
-
watched
public ModeledFrameworkBuilder<T> watched(WatchMode watchMode, java.util.function.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:
AsyncStage.event()
-
withUnhandledErrorListener
public ModeledFrameworkBuilder<T> withUnhandledErrorListener(org.apache.curator.framework.api.UnhandledErrorListener unhandledErrorListener)
Use the given unhandledErrorListener for operations on the Modeled Curator's ZNode- Parameters:
unhandledErrorListener- listener- Returns:
- this for chaining
-
withResultFilter
public ModeledFrameworkBuilder<T> withResultFilter(java.util.function.UnaryOperator<org.apache.curator.framework.api.CuratorEvent> resultFilter)
Use the given result filter for operations on the Modeled Curator's ZNode- Parameters:
resultFilter- filter- Returns:
- this for chaining
-
withModelSpec
public ModeledFrameworkBuilder<T> withModelSpec(ModelSpec<T> modelSpec)
Change the model spec to use- Parameters:
modelSpec- model spec- Returns:
- this for chaining
-
withClient
public ModeledFrameworkBuilder<T> withClient(AsyncCuratorFramework client)
Change the client to use- Parameters:
client- new client- Returns:
- this for chaining
-
withOptions
public ModeledFrameworkBuilder<T> withOptions(java.util.Set<ModeledOptions> modeledOptions)
Change the modeled options- Parameters:
modeledOptions- new options set- Returns:
- this for chaining
-
-