Package org.apache.curator.framework.api

Examples of org.apache.curator.framework.api.SetDataBuilder


    }
  }

  protected SingularityCreateResult set(String path, Optional<byte[]> data) {
    try {
      SetDataBuilder setDataBuilder = curator.setData();

      if (data.isPresent()) {
        setDataBuilder.forPath(path, data.get());
      } else {
        setDataBuilder.forPath(path);
      }

      return SingularityCreateResult.EXISTED;
    } catch (NoNodeException nne) {
      return save(path, data);
View Full Code Here

TOP

Related Classes of org.apache.curator.framework.api.SetDataBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.