public class ModeledFrameworkBuilder<T> extends Object
Modifier and Type | Method and Description |
---|---|
ModeledFramework<T> |
build()
Build a new ModeledFramework instance
|
ModeledFrameworkBuilder<T> |
watched()
Add watchers as appropriate to the Modeled Curator's ZNode using
WatchMode.stateChangeAndSuccess |
ModeledFrameworkBuilder<T> |
watched(WatchMode watchMode)
Add watchers as appropriate using the given watchMode to the Modeled Curator's ZNode
|
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
|
ModeledFrameworkBuilder<T> |
withClient(AsyncCuratorFramework client)
Change the client to use
|
ModeledFrameworkBuilder<T> |
withModelSpec(ModelSpec<T> modelSpec)
Change the model spec to use
|
ModeledFrameworkBuilder<T> |
withOptions(Set<ModeledOptions> modeledOptions)
Change the modeled options
|
ModeledFrameworkBuilder<T> |
withResultFilter(UnaryOperator<CuratorEvent> resultFilter)
Use the given result filter for operations on the Modeled Curator's ZNode
|
ModeledFrameworkBuilder<T> |
withUnhandledErrorListener(UnhandledErrorListener unhandledErrorListener)
Use the given unhandledErrorListener for operations on the Modeled Curator's ZNode
|
public ModeledFramework<T> build()
public ModeledFrameworkBuilder<T> watched()
WatchMode.stateChangeAndSuccess
AsyncStage.event()
public ModeledFrameworkBuilder<T> watched(WatchMode watchMode)
watchMode
- watcher styleAsyncStage.event()
public ModeledFrameworkBuilder<T> watched(WatchMode watchMode, UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
watchMode
- watcher stylewatcherFilter
- filterAsyncStage.event()
public ModeledFrameworkBuilder<T> withUnhandledErrorListener(UnhandledErrorListener unhandledErrorListener)
unhandledErrorListener
- listenerpublic ModeledFrameworkBuilder<T> withResultFilter(UnaryOperator<CuratorEvent> resultFilter)
resultFilter
- filterpublic ModeledFrameworkBuilder<T> withModelSpec(ModelSpec<T> modelSpec)
modelSpec
- model specpublic ModeledFrameworkBuilder<T> withClient(AsyncCuratorFramework client)
client
- new clientpublic ModeledFrameworkBuilder<T> withOptions(Set<ModeledOptions> modeledOptions)
modeledOptions
- new options setCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.