What is the purpose of TaskExecutor in spring?

What is the purpose of TaskExecutor in spring. What problem does it solve ? How is it different from Executors in java concurrent package ?


From http://static.springsource.org/spring/docs/2.0.8/reference/scheduling.html

23.4. The Spring TaskExecutor abstraction


<strong>Spring's TaskExecutor interface is identical to the java.util.concurrent.Executor interface. In fact, its primary reason for existence is to abstract away the need for Java 5 when using thread pools.</strong> The interface has a single method execute(Runnable task) that accepts a task for execution based on the semantics and configuration of the thread pool.



It's an interface whose implementations wrap around Java 5+ ExecutorService and provide implementations for previous versions of Java that are missing the package java.util.concurrent


  • Show item of the day
  • Spark-SQL slow query performance
  • Print the content of streams (Spark streaming) in windows system
  • Shutting down netty 4 application throws RejectedExecutionException
  • FATAL master.HMaster: Unexpected state : .. Cannot transit it to OFFLINE
  • TFS2012 Task work item definition - Update 'Remaining Work' with 'Original Estimate&#
  • how to get Task id,Feature id,Complete hrs by WIQL tfs by date?
  • spring-boot disable HTTP methods
  • How to query property value when property name is a parameter?
  • Trying to get mvc resources to serve my static resources
  • C++ std::set comparator
  • Eclipse: missing requirement E4 RCP patch when installing properties editor
  • Migrating from java 1.4 ,EJB 1 to Java 6 and EJB 3 [closed]
  • What does a hyphen at end of a term mean
  • How to get the index of element in the List in c#
  • Why does IE8 fail to resolve my JQuery selector for a checked radio option?
  • Rails AREL .where statement
  • Create registry key in 32-bit hive on x64 PC using Installshield 2012 LE - Avoid redirection
  • Configuring multiple DefaultJmslistenercontainerfactory
  • Less Conflicting Session Manager for Zope 2
  • c++ regex_replace not doing intended substitution
  • drawing random circles, storing their coorindates in an array
  • Spring integration inbound-gateway Fire an event when queue is empty
  • Android Database Error - getWriteableDatabase
  • Using Generics on right hand side in Java 6?
  • get path to groovy source file at runtime
  • using System.Speech.Synthesis with Windows10 universal app (XAML-C#)
  • C# fibonacci function returning errors
  • JPA flush vs commit
  • GAE: Way to get reference to an HttpSession from its ID?
  • How to get current document uri in XSLT?
  • Spring boot 2.0.0.M4 required a bean named 'entityManagerFactory' that could not be found
  • Convert Type Decimal to Hex (string) in .NET 3.5
  • how to find common suffix in java by using method
  • MySQL Order by column = x, column asc?
  • Zurb Foundation _global.scss meta styles for js?
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Moving mysql files across servers
  • QuartzCore.framework for Mono Develop
  • RestKit - RKRequestDelegate does not exist