public class SerializingExecutor extends Lifecycle implements java.util.concurrent.Executor, java.lang.Runnable
ILifecycle.DeferrableActivation| Constructor and Description |
|---|
SerializingExecutor() |
SerializingExecutor(java.util.concurrent.Executor delegate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doActivate() |
protected void |
doDeactivate() |
void |
execute(java.lang.Runnable task) |
java.util.concurrent.Executor |
getDelegate() |
protected void |
handleFailedTask(java.lang.Runnable task,
java.lang.Throwable failure) |
void |
run() |
void |
setDelegate(java.util.concurrent.Executor delegate) |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic SerializingExecutor(java.util.concurrent.Executor delegate)
public SerializingExecutor()
public final java.util.concurrent.Executor getDelegate()
public final void setDelegate(java.util.concurrent.Executor delegate)
public final void execute(java.lang.Runnable task)
execute in interface java.util.concurrent.Executorpublic final void run()
run in interface java.lang.Runnableprotected void handleFailedTask(java.lang.Runnable task,
java.lang.Throwable failure)
protected void doActivate()
throws java.lang.Exception
doActivate in class Lifecyclejava.lang.Exceptionprotected void doDeactivate()
throws java.lang.Exception
doDeactivate in class Lifecyclejava.lang.ExceptionCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html