简体   繁体   中英

Threads with Spring, wait, notify?

I haven't used any of Spring's threading support before. Does it support any high level concept of the Thread class's wait and notify?

Yes, see Task Executors and Scheduling . In addition there's this blog post about the simplifications in 3.0, which uses the new Java 5 executor framework.

The high-level threading - or rather concurrency - classes for Java are found in the java.util.concurrent package, included in the JRE since Java 5.

Take a look at the package summary and see if it suits your needs.

I don't think that you need something extra which Spring can offer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM