Package org.apache.curator.framework.api
Interface Backgroundable<T>
- All Known Subinterfaces:
ACLableExistBuilderMain
,ACLBackgroundPathAndBytesable<T>
,ACLCreateModeBackgroundPathAndBytesable<T>
,ACLCreateModeStatBackgroundPathAndBytesable<T>
,AddWatchBuilder
,AddWatchBuilder2
,BackgroundEnsembleable<T>
,BackgroundPathable<T>
,BackgroundPathableQuietlyable<T>
,BackgroundPathAndBytesable<T>
,BackgroundVersionable
,ChildrenDeletable
,CreateBackgroundModeACLable
,CreateBackgroundModeStatACLable
,CreateBuilder
,CreateBuilder2
,CreateBuilderMain
,CreateProtectACLCreateModePathAndBytesable<T>
,CuratorMultiTransaction
,DeleteBuilder
,DeleteBuilderMain
,ExistsBuilder
,ExistsBuilderMain
,GetACLBuilder
,GetChildrenBuilder
,GetConfigBuilder
,GetDataBuilder
,GetDataWatchBackgroundStatable
,GuaranteeableDeletable
,ProtectACLCreateModePathAndBytesable<T>
,ProtectACLCreateModeStatPathAndBytesable<T>
,ReconfigBuilder
,RemoveWatchesLocal
,RemoveWatchesType
,SetDataBackgroundVersionable
,SetDataBuilder
,SyncBuilder
,WatchBackgroundEnsembleable<T>
- All Known Implementing Classes:
AddWatchBuilderImpl
,CreateBuilderImpl
,CuratorMultiTransactionImpl
,DeleteBuilderImpl
,ExistsBuilderImpl
,GetACLBuilderImpl
,GetChildrenBuilderImpl
,GetConfigBuilderImpl
,GetDataBuilderImpl
,ReconfigBuilderImpl
,RemoveWatchesBuilderImpl
,SetACLBuilderImpl
,SetDataBuilderImpl
,SyncBuilderImpl
,WatchesBuilderImpl
public interface Backgroundable<T>
-
Method Summary
Modifier and TypeMethodDescriptionPerform the action in the backgroundinBackground
(Object context) Perform the action in the backgroundinBackground
(BackgroundCallback callback) Perform the action in the backgroundinBackground
(BackgroundCallback callback, Object context) Perform the action in the backgroundinBackground
(BackgroundCallback callback, Object context, Executor executor) Perform the action in the backgroundinBackground
(BackgroundCallback callback, Executor executor) Perform the action in the background
-
Method Details
-
inBackground
T inBackground()Perform the action in the background- Returns:
- this
-
inBackground
Perform the action in the background- Parameters:
context
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
Perform the action in the background- Parameters:
callback
- a functor that will get called when the operation has completed- Returns:
- this
-
inBackground
Perform the action in the background- Parameters:
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listener- Returns:
- this
-
inBackground
Perform the action in the background- Parameters:
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background call- Returns:
- this
-
inBackground
Perform the action in the background- Parameters:
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listenerexecutor
- executor to use for the background call- Returns:
- this
-