Class ModeledFrameworkBuilder<T>


  • public class ModeledFrameworkBuilder<T>
    extends java.lang.Object
    • Method Detail

      • build

        public ModeledFramework<T> build()
        Build a new ModeledFramework instance
        Returns:
        new ModeledFramework instance
      • 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 style
        watcherFilter - 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
      • withOptions

        public ModeledFrameworkBuilder<T> withOptions​(java.util.Set<ModeledOptions> modeledOptions)
        Change the modeled options
        Parameters:
        modeledOptions - new options set
        Returns:
        this for chaining