SerializingExecutor
.@Deprecated public class ExecutorWorkSerializer extends Lifecycle implements IWorkSerializer
ILifecycle.DeferrableActivation
Constructor and Description |
---|
ExecutorWorkSerializer()
Deprecated.
|
ExecutorWorkSerializer(java.util.concurrent.Executor executor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addWork(java.lang.Runnable runnable)
Deprecated.
|
void |
dispose()
Deprecated.
|
protected void |
doActivate()
Deprecated.
|
protected void |
doBeforeActivate()
Deprecated.
|
protected void |
doDeactivate()
Deprecated.
|
java.util.concurrent.Executor |
getExecutor()
Deprecated.
|
protected void |
handleException(java.lang.Runnable runnable,
java.lang.Throwable ex)
Deprecated.
|
protected void |
noWork()
Deprecated.
|
void |
setExecutor(java.util.concurrent.Executor executor)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public ExecutorWorkSerializer()
public ExecutorWorkSerializer(java.util.concurrent.Executor executor)
public java.util.concurrent.Executor getExecutor()
public void setExecutor(java.util.concurrent.Executor executor)
public boolean addWork(java.lang.Runnable runnable)
addWork
in interface IWorkSerializer
public void dispose()
dispose
in interface IWorkSerializer
protected void handleException(java.lang.Runnable runnable, java.lang.Throwable ex)
protected void noWork()
protected void doBeforeActivate() throws java.lang.Exception
doBeforeActivate
in class Lifecycle
java.lang.Exception
protected void doActivate() throws java.lang.Exception
doActivate
in class Lifecycle
java.lang.Exception
protected void doDeactivate() throws java.lang.Exception
doDeactivate
in class Lifecycle
java.lang.Exception
Copyright (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