org.apache.curator.framework.imps
Class SyncBuilderImpl

java.lang.Object
  extended by org.apache.curator.framework.imps.SyncBuilderImpl
All Implemented Interfaces:
Backgroundable<Pathable<Void>>, BackgroundPathable<Void>, Pathable<Void>, SyncBuilder

public class SyncBuilderImpl
extends Object
implements SyncBuilder


Constructor Summary
SyncBuilderImpl(CuratorFrameworkImpl client)
           
 
Method Summary
 Void forPath(String path)
          Commit the currently building operation using the given path
 Pathable<Void> inBackground()
          Perform the action in the background
 Pathable<Void> inBackground(BackgroundCallback callback)
          Perform the action in the background
 Pathable<Void> inBackground(BackgroundCallback callback, Executor executor)
          Perform the action in the background
 Pathable<Void> inBackground(BackgroundCallback callback, Object context)
          Perform the action in the background
 Pathable<Void> inBackground(BackgroundCallback callback, Object context, Executor executor)
          Perform the action in the background
 Pathable<Void> inBackground(Object context)
          Perform the action in the background
 void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncBuilderImpl

public SyncBuilderImpl(CuratorFrameworkImpl client)
Method Detail

inBackground

public Pathable<Void> inBackground()
Description copied from interface: Backgroundable
Perform the action in the background

Specified by:
inBackground in interface Backgroundable<Pathable<Void>>
Returns:
this

inBackground

public Pathable<Void> inBackground(Object context)
Description copied from interface: Backgroundable
Perform the action in the background

Specified by:
inBackground in interface Backgroundable<Pathable<Void>>
Parameters:
context - context object - will be available from the event sent to the listener
Returns:
this

inBackground

public Pathable<Void> inBackground(BackgroundCallback callback)
Description copied from interface: Backgroundable
Perform the action in the background

Specified by:
inBackground in interface Backgroundable<Pathable<Void>>
Parameters:
callback - a functor that will get called when the operation has completed
Returns:
this

inBackground

public Pathable<Void> inBackground(BackgroundCallback callback,
                                   Object context)
Description copied from interface: Backgroundable
Perform the action in the background

Specified by:
inBackground in interface Backgroundable<Pathable<Void>>
Parameters:
callback - a functor that will get called when the operation has completed
context - context object - will be available from the event sent to the listener
Returns:
this

inBackground

public Pathable<Void> inBackground(BackgroundCallback callback,
                                   Executor executor)
Description copied from interface: Backgroundable
Perform the action in the background

Specified by:
inBackground in interface Backgroundable<Pathable<Void>>
Parameters:
callback - a functor that will get called when the operation has completed
executor - executor to use for the background call
Returns:
this

inBackground

public Pathable<Void> inBackground(BackgroundCallback callback,
                                   Object context,
                                   Executor executor)
Description copied from interface: Backgroundable
Perform the action in the background

Specified by:
inBackground in interface Backgroundable<Pathable<Void>>
Parameters:
callback - a functor that will get called when the operation has completed
context - context object - will be available from the event sent to the listener
executor - executor to use for the background call
Returns:
this

performBackgroundOperation

public void performBackgroundOperation(org.apache.curator.framework.imps.OperationAndData<String> operationAndData)
                                throws Exception
Throws:
Exception

forPath

public Void forPath(String path)
             throws Exception
Description copied from interface: Pathable
Commit the currently building operation using the given path

Specified by:
forPath in interface Pathable<Void>
Parameters:
path - the path
Returns:
operation result if any
Throws:
Exception - errors


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.