Package com.netflix.curator.framework.api

Examples of com.netflix.curator.framework.api.CreateBuilder


    }

    public void writeBytes(String path, byte[] bytes) {
        try {
            if (_curator.checkExists().forPath(path) == null) {
                CreateBuilder builder = _curator.create();
                ProtectACLCreateModePathAndBytesable<String> createAble = (ProtectACLCreateModePathAndBytesable<String>) builder
                        .creatingParentsIfNeeded();
                createAble.withMode(CreateMode.PERSISTENT).forPath(path, bytes);
            } else {
                _curator.setData().forPath(path, bytes);
            }
View Full Code Here

TOP

Related Classes of com.netflix.curator.framework.api.CreateBuilder

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.