Class AsynchronousWorkSerializer
- java.lang.Object
-
- org.eclipse.net4j.util.concurrent.AsynchronousWorkSerializer
-
- All Implemented Interfaces:
java.lang.Runnable,IExecutorServiceProvider,IWorkSerializer
@Deprecated public class AsynchronousWorkSerializer extends java.lang.Object implements IWorkSerializer, IExecutorServiceProvider, java.lang.Runnable
Deprecated.As of 3.6 useExecutorWorkSerializer.- Author:
- Eike Stepper
-
-
Constructor Summary
Constructors Constructor Description AsynchronousWorkSerializer(java.util.concurrent.ExecutorService executorService)Deprecated.AsynchronousWorkSerializer(java.util.concurrent.ExecutorService executorService, java.util.Queue<java.lang.Runnable> workQueue)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddWork(java.lang.Runnable work)Deprecated.voiddispose()Deprecated.java.util.concurrent.ExecutorServicegetExecutorService()Deprecated.voidrun()Deprecated.Executed in the context of theexecutor service.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
AsynchronousWorkSerializer
public AsynchronousWorkSerializer(java.util.concurrent.ExecutorService executorService, java.util.Queue<java.lang.Runnable> workQueue)Deprecated.
-
AsynchronousWorkSerializer
public AsynchronousWorkSerializer(java.util.concurrent.ExecutorService executorService)
Deprecated.
-
-
Method Detail
-
getExecutorService
public java.util.concurrent.ExecutorService getExecutorService()
Deprecated.- Specified by:
getExecutorServicein interfaceIExecutorServiceProvider
-
addWork
public boolean addWork(java.lang.Runnable work)
Deprecated.- Specified by:
addWorkin interfaceIWorkSerializer
-
run
public void run()
Deprecated.Executed in the context of theexecutor service.- Specified by:
runin interfacejava.lang.Runnable
-
dispose
public void dispose()
Deprecated.- Specified by:
disposein interfaceIWorkSerializer
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-