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,
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
|
T inBackground()
T inBackground(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, 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, Executor executor)
callback
- a functor that will get called when the operation has completedexecutor
- executor to use for the background callT inBackground(BackgroundCallback callback, Object context, 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 callCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.