org.apache.curator.framework.api
Interface Backgroundable<T>

All Known Subinterfaces:
ACLBackgroundPathable<T>, ACLBackgroundPathAndBytesable<T>, ACLCreateModeBackgroundPathAndBytesable<T>, BackgroundPathable<T>, BackgroundPathAndBytesable<T>, BackgroundVersionable, ChildrenDeletable, CreateBackgroundModeACLable, CreateBuilder, DeleteBuilder, ExistsBuilder, GetACLBuilder, GetChildrenBuilder, GetDataBuilder, GetDataWatchBackgroundStatable, Guaranteeable, ProtectACLCreateModePathAndBytesable<T>, SetDataBackgroundVersionable, SetDataBuilder, SyncBuilder
All Known Implementing Classes:
SyncBuilderImpl

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(BackgroundCallback callback, Object context)
          Perform the action in the background
 T inBackground(BackgroundCallback callback, Object context, 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,
               Object context)
Perform the action in the background

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

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

inBackground

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

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


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