Examples of RpcBackgroundCallback


Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

                builder = castBuilder(builder, CreateModable.class).withMode(CreateMode.valueOf(spec.mode.name()));
            }

            if ( spec.asyncContext != null )
            {
                BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
                builder = castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback, spec.asyncContext);
            }

            Object path = castBuilder(builder, PathAndBytesable.class).forPath(spec.path, spec.data);
            return new OptionalPath((path != null) ? String.valueOf(path) : null);
View Full Code Here

Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

                builder = castBuilder(builder, Versionable.class).withVersion(spec.version.version);
            }

            if ( spec.asyncContext != null )
            {
                BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
                builder = castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback, spec.asyncContext);
            }

            castBuilder(builder, Pathable.class).forPath(spec.path);
        }
View Full Code Here

Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

                builder = castBuilder(builder, Decompressible.class).decompressed();
            }

            if ( spec.asyncContext != null )
            {
                BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
                builder = castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback);
            }

            Stat stat = new Stat();
            builder = castBuilder(builder, Statable.class).storingStatIn(stat);
View Full Code Here

Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

                builder = castBuilder(builder, Compressible.class).compressed();
            }

            if ( spec.asyncContext != null )
            {
                BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
                builder = castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback);
            }

            Stat stat = (Stat)castBuilder(builder, PathAndBytesable.class).forPath(spec.path, spec.data);
            return new OptionalRpcStat(RpcCuratorEvent.toRpcStat(stat));
View Full Code Here

Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

                builder = castBuilder(builder, Watchable.class).usingWatcher(new RpcWatcher(this, projection));
            }

            if ( spec.asyncContext != null )
            {
                BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
                castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback);
            }

            Stat stat = (Stat)castBuilder(builder, Pathable.class).forPath(spec.path);
            return new OptionalRpcStat((stat != null) ? RpcCuratorEvent.toRpcStat(stat) : null);
View Full Code Here

Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

                builder = castBuilder(builder, Watchable.class).usingWatcher(new RpcWatcher(this, projection));
            }

            if ( spec.asyncContext != null )
            {
                BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
                builder = castBuilder(builder, Backgroundable.class).inBackground(backgroundCallback);
            }

            @SuppressWarnings("unchecked")
            List<String> children = (List<String>)castBuilder(builder, Pathable.class).forPath(spec.path);
View Full Code Here

Examples of org.apache.curator.x.rpc.details.RpcBackgroundCallback

    public void sync(CuratorProjection projection, String path, String asyncContext) throws RpcException
    {
        try
        {
            CuratorEntry entry = CuratorEntry.mustGetEntry(connectionManager, projection);
            BackgroundCallback backgroundCallback = new RpcBackgroundCallback(this, projection);
            entry.getClient().sync().inBackground(backgroundCallback, asyncContext).forPath(path);
        }
        catch ( Exception e )
        {
            throw new RpcException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.