Class ConcurrentExecutorAdapter

  • java.lang.Object
  • All Implemented Interfaces:

    public class ConcurrentExecutorAdapter
    extends java.lang.Object
    implements java.util.concurrent.Executor
    Adapter that exposes the Executor interface for any Spring TaskExecutor.

    This is less useful as of Spring 3.0, since TaskExecutor itself extends the Executor interface. The adapter is only relevant for hiding the TaskExecutor nature of a given object now, solely exposing the standard Executor interface to a client.

    Juergen Hoeller
    See Also:
    Executor, TaskExecutor
    • Constructor Summary

      Constructor and Description
      ConcurrentExecutorAdapter(TaskExecutor taskExecutor)
      Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute(java.lang.Runnable command) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConcurrentExecutorAdapter

        public ConcurrentExecutorAdapter(TaskExecutor taskExecutor)
        Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.
        taskExecutor - the Spring TaskExecutor to wrap
    • Method Detail

      • execute

        public void execute(java.lang.Runnable command)
        Specified by:
        execute in interface java.util.concurrent.Executor