ExecutorWorkSerializer
.@Deprecated public class AsynchronousWorkSerializer extends Object implements IWorkSerializer, IExecutorServiceProvider, Runnable
Constructor and Description |
---|
AsynchronousWorkSerializer(ExecutorService executorService)
Deprecated.
|
AsynchronousWorkSerializer(ExecutorService executorService,
Queue<Runnable> workQueue)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addWork(Runnable work)
Deprecated.
|
void |
dispose()
Deprecated.
|
ExecutorService |
getExecutorService()
Deprecated.
|
void |
run()
Deprecated.
Executed in the context of the
executor service . |
String |
toString()
Deprecated.
|
public AsynchronousWorkSerializer(ExecutorService executorService, Queue<Runnable> workQueue)
public AsynchronousWorkSerializer(ExecutorService executorService)
public ExecutorService getExecutorService()
getExecutorService
in interface IExecutorServiceProvider
public boolean addWork(Runnable work)
addWork
in interface IWorkSerializer
public void run()
executor service
.
public void dispose()
dispose
in interface IWorkSerializer
Copyright (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