org.eclipse.net4j.util.concurrent
Class AsynchronousWorkSerializer
java.lang.Object
org.eclipse.net4j.util.concurrent.AsynchronousWorkSerializer
- All Implemented Interfaces:
- Runnable, IWorkSerializer
- public class AsynchronousWorkSerializer
- extends Object
- implements IWorkSerializer, Runnable
AsynchronousWorkSerializer
public AsynchronousWorkSerializer(ExecutorService executorService,
Queue<Runnable> workQueue)
AsynchronousWorkSerializer
public AsynchronousWorkSerializer(ExecutorService executorService)
getExecutorService
public ExecutorService getExecutorService()
addWork
public boolean addWork(Runnable work)
- Specified by:
addWork
in interface IWorkSerializer
run
public void run()
- Executed in the context of the
executor service
.
- Specified by:
run
in interface Runnable
dispose
public void dispose()
- Specified by:
dispose
in interface IWorkSerializer
toString
public String toString()
- Overrides:
toString
in class Object
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.