public interface Backgroundable<T>
Modifier and Type | Method and Description |
---|---|
T |
inBackground()
Perform the action in the background
|
T |
inBackground(BackgroundCallback callback)
Perform the action in the background
|
T |
inBackground(BackgroundCallback callback,
java.util.concurrent.Executor executor)
Perform the action in the background
|
T |
inBackground(BackgroundCallback callback,
java.lang.Object context)
Perform the action in the background
|
T |
inBackground(BackgroundCallback callback,
java.lang.Object context,
java.util.concurrent.Executor executor)
Perform the action in the background
|
T |
inBackground(java.lang.Object context)
Perform the action in the background
|
T inBackground()
T inBackground(java.lang.Object context)
context
- context object - will be available from the event sent to the listenerT inBackground(BackgroundCallback callback)
callback
- a functor that will get called when the operation has completedT inBackground(BackgroundCallback callback, java.lang.Object context)
callback
- a functor that will get called when the operation has completedcontext
- context object - will be available from the event sent to the listenerT inBackground(BackgroundCallback callback, java.util.concurrent.Executor executor)
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background callT inBackground(BackgroundCallback callback, java.lang.Object context, java.util.concurrent.Executor executor)
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