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) 2011-2015 Eike Stepper (Berlin, Germany) and others.