public class ExecutorWorkSerializer extends Lifecycle implements IWorkSerializer
ILifecycle.DeferrableActivation| Constructor and Description |
|---|
ExecutorWorkSerializer() |
ExecutorWorkSerializer(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addWork(Runnable runnable) |
void |
dispose() |
protected void |
doActivate() |
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
Executor |
getExecutor() |
protected void |
handleException(Runnable runnable,
Throwable ex) |
protected void |
noWork() |
void |
setExecutor(Executor executor) |
String |
toString() |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivationaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic ExecutorWorkSerializer()
public ExecutorWorkSerializer(Executor executor)
public Executor getExecutor()
public void setExecutor(Executor executor)
public boolean addWork(Runnable runnable)
addWork in interface IWorkSerializerpublic void dispose()
dispose in interface IWorkSerializerprotected void noWork()
protected void doBeforeActivate()
throws Exception
doBeforeActivate in class LifecycleExceptionprotected void doActivate()
throws Exception
doActivate in class LifecycleExceptionprotected void doDeactivate()
throws Exception
doDeactivate in class LifecycleExceptionCopyright (c) 2014 Eike Stepper (Berlin, 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