Package org.apache.curator.framework.api
Interface Backgroundable<T>
-
- All Known Subinterfaces:
ACLableExistBuilderMain,ACLBackgroundPathAndBytesable<T>,ACLCreateModeBackgroundPathAndBytesable<T>,ACLCreateModeStatBackgroundPathAndBytesable<T>,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:
CreateBuilderImpl,CuratorMultiTransactionImpl,DeleteBuilderImpl,ExistsBuilderImpl,GetACLBuilderImpl,GetChildrenBuilderImpl,GetConfigBuilderImpl,GetDataBuilderImpl,ReconfigBuilderImpl,RemoveWatchesBuilderImpl,SetACLBuilderImpl,SetDataBuilderImpl,SyncBuilderImpl
public interface Backgroundable<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TinBackground()Perform the action in the backgroundTinBackground(java.lang.Object context)Perform the action in the backgroundTinBackground(BackgroundCallback callback)Perform the action in the backgroundTinBackground(BackgroundCallback callback, java.lang.Object context)Perform the action in the backgroundTinBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)Perform the action in the backgroundTinBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)Perform the action in the background
-
-
-
Method Detail
-
inBackground
T inBackground()
Perform the action in the background- Returns:
- this
-
inBackground
T inBackground(java.lang.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, java.lang.Object context)
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
T inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
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
T inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
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
-
-