public class ProgressListenerCallbackExecutor
extends java.lang.Object
| Constructor and Description |
|---|
ProgressListenerCallbackExecutor() |
ProgressListenerCallbackExecutor(ProgressListener listener) |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.concurrent.ExecutorService |
getExecutorService()
Returns the executor service used for performing the callbacks.
|
protected ProgressListener |
getListener()
Returns the listener associated with the callback executor.
|
void |
progressChanged(ProgressEvent progressEvent) |
static java.util.concurrent.Future<?> |
progressChanged(ProgressListener listener,
ProgressEvent progressEvent)
Used to submit a task to publish a progress event to the given listener.
|
static ProgressListenerCallbackExecutor |
wrapListener(ProgressListener listener)
Returns a new ProgressListenerCallbackExecutor instance that wraps the
specified ProgressListener if it is not null, otherwise directly returns
null.
|
public ProgressListenerCallbackExecutor(ProgressListener listener)
public ProgressListenerCallbackExecutor()
public static java.util.concurrent.Future<?> progressChanged(ProgressListener listener, ProgressEvent progressEvent)
public void progressChanged(ProgressEvent progressEvent)
protected ProgressListener getListener()
protected static java.util.concurrent.ExecutorService getExecutorService()
public static ProgressListenerCallbackExecutor wrapListener(ProgressListener listener)