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 boolean
addWork(java.lang.Runnable work)
Deprecated.void
dispose()
Deprecated.java.util.concurrent.ExecutorService
getExecutorService()
Deprecated.void
run()
Deprecated.Executed in the context of theexecutor service
.java.lang.String
toString()
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:
getExecutorService
in interfaceIExecutorServiceProvider
-
addWork
public boolean addWork(java.lang.Runnable work)
Deprecated.- Specified by:
addWork
in interfaceIWorkSerializer
-
run
public void run()
Deprecated.Executed in the context of theexecutor service
.- Specified by:
run
in interfacejava.lang.Runnable
-
dispose
public void dispose()
Deprecated.- Specified by:
dispose
in interfaceIWorkSerializer
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-