org.apache.curator.framework.api.Pathable Java Examples

The following examples show how to use org.apache.curator.framework.api.Pathable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TreeCache.java    From curator with Apache License 2.0 5 votes vote down vote up
private <T, P extends Watchable<BackgroundPathable<T>> & BackgroundPathable<T>> Pathable<T> maybeWatch(
    P dataBuilder) {
    if (disableZkWatches) {
        return dataBuilder.inBackground(this);
    } else {
        return dataBuilder.usingWatcher(this).inBackground(this);
    }
}
 
Example #2
Source File: TempGetDataBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<byte[]> storingStatIn(Stat stat)
{
    responseStat = stat;
    return this;
}
 
Example #3
Source File: GetACLBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<List<ACL>> storingStatIn(Stat stat)
{
    responseStat = stat;
    return this;
}
 
Example #4
Source File: GetACLBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<List<ACL>> withUnhandledErrorListener(UnhandledErrorListener listener)
{
    backgrounding = new Backgrounding(backgrounding, listener);
    return this;
}
 
Example #5
Source File: GetChildrenBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<List<String>> withUnhandledErrorListener(UnhandledErrorListener listener)
{
    backgrounding = new Backgrounding(backgrounding, listener);
    return this;
}
 
Example #6
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public WatchableBase<Pathable<Void>> inBackground(BackgroundCallback callback, Object context, Executor executor)
{
    backgrounding = new Backgrounding(client, callback, context, executor);
    return this;
}
 
Example #7
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public WatchableBase<Pathable<Void>> inBackground(BackgroundCallback callback, Executor executor)
{
    backgrounding = new Backgrounding(callback, executor);
    return this;
}
 
Example #8
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public WatchableBase<Pathable<Void>> inBackground(BackgroundCallback callback, Object context)
{
    backgrounding = new Backgrounding(callback, context);
    return this;
}
 
Example #9
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public WatchableBase<Pathable<Void>> inBackground(BackgroundCallback callback)
{
    backgrounding = new Backgrounding(callback);
    return this;
}
 
Example #10
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public WatchableBase<Pathable<Void>> inBackground(Object context)
{
    backgrounding = new Backgrounding(context);
    return this;
}
 
Example #11
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<Void> usingWatcher(CuratorWatcher watcher)
{
    watching = new Watching(client, watcher);
    return this;
}
 
Example #12
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<Void> usingWatcher(Watcher watcher)
{
    watching = new Watching(client, watcher);
    return this;
}
 
Example #13
Source File: AddWatchBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public WatchableBase<Pathable<Void>> inBackground()
{
    backgrounding = new Backgrounding();
    return this;
}
 
Example #14
Source File: SyncBuilderImpl.java    From xian with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<Void> withUnhandledErrorListener(UnhandledErrorListener listener)
{
    backgrounding = new Backgrounding(backgrounding, listener);
    return this;
}
 
Example #15
Source File: SyncBuilderImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<Void> withUnhandledErrorListener(UnhandledErrorListener listener)
{
    backgrounding = new Backgrounding(backgrounding, listener);
    return this;
}
 
Example #16
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<CuratorTransactionBridge> withVersion(int i) {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #17
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<T> inBackground(BackgroundCallback backgroundCallback, Object o, Executor executor) {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #18
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<T> inBackground(BackgroundCallback backgroundCallback, Executor executor) {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #19
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<T> inBackground(BackgroundCallback backgroundCallback, Object o) {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #20
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<T> inBackground(BackgroundCallback backgroundCallback) {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #21
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<T> inBackground(Object o) {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #22
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<T> inBackground() {
    throw new UnsupportedOperationException("Not implemented in MockCurator");
}
 
Example #23
Source File: GetACLBuilderImpl.java    From xian with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<List<ACL>> storingStatIn(Stat stat)
{
    responseStat = stat;
    return this;
}
 
Example #24
Source File: GetACLBuilderImpl.java    From xian with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<List<ACL>> withUnhandledErrorListener(UnhandledErrorListener listener)
{
    backgrounding = new Backgrounding(backgrounding, listener);
    return this;
}
 
Example #25
Source File: GetChildrenBuilderImpl.java    From xian with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<List<String>> withUnhandledErrorListener(UnhandledErrorListener listener)
{
    backgrounding = new Backgrounding(backgrounding, listener);
    return this;
}
 
Example #26
Source File: TempGetDataBuilderImpl.java    From xian with Apache License 2.0 4 votes vote down vote up
@Override
public Pathable<byte[]> storingStatIn(Stat stat)
{
    responseStat = stat;
    return this;
}