com.netflix.curator.framework.api
Interface Backgroundable<T>

All Known Subinterfaces:
ACLBackgroundPathable<T>, ACLBackgroundPathAndBytesable<T>, ACLCreateModeBackgroundPathAndBytesable<T>, BackgroundPathable<T>, BackgroundPathAndBytesable<T>, CreateBuilder, DeleteBuilder, ExistsBuilder, GetACLBuilder, GetChildrenBuilder, GetDataBuilder, SetDataBuilder

public interface Backgroundable<T>


Method Summary
 T inBackground()
          Perform the action in the background
 T inBackground(BackgroundCallback callback)
          Perform the action in the background
 T inBackground(BackgroundCallback callback, Executor executor)
          Perform the action in the background
 T inBackground(Object context)
          Perform the action in the background
 

Method Detail

inBackground

T inBackground()
Perform the action in the background

Returns:
this

inBackground

T inBackground(Object context)
Perform the action in the background

Parameters:
context - context object - will be available from the event sent to the listener
Returns:
this

inBackground

T inBackground(BackgroundCallback callback)
Perform the action in the background

Parameters:
callback - a functor that will get called when the operation has completed
Returns:
this

inBackground

T inBackground(BackgroundCallback callback,
               Executor executor)
Perform the action in the background

Parameters:
callback - a functor that will get called when the operation has completed
executor - executor to use for the background call
Returns:
this


Copyright © 2012. All Rights Reserved.