Join Ketkee Aryamane for an in-depth discussion in this video ScheduledExecutorService overview, part of Java EE: Concurrency and Multithreading.
- [Instructor] We have seen the Executor,…and we've seen the ExecutorService,…now let's take a look at…the ScheduledExecutorService interface.…It's a sub-interface of the ExecutorService,…and as the name suggests,…it is used to schedule certain jobs, right?…So we just got a special method called a schedule,…which will help you run jobs after a given delay.…So you can actually start a job…after some initial delay and then the job can run for you.…Something like that, okay?…There are two other flavors of methods:…scheduleWithFixedDelay and scheduleAtFixedRate.…
So those are the methods that you may want to employ…if you want to execute your jobs in the application…at periodic intervals or with certain definite delay, okay?…So let's go to the next slide and see…what is the use case that we are going to implement…as a part of this API's demo that we are going to do.…Now when you talk about schedule jobs in your application,…it is generally a very common use case that we have:…clean up and maintenance activities for the application.…
- What is concurrency?
- Processes and threads in Java SE
- Java EE concurrency APIs
- Working with the ManagedExecutorService, ManagedScheduledExecutorService, ManagedThreadFactory, and ContextService APIs
- Defining data access object (DAO) classes
- Adding methods to DAO classes
- Writing REST classes
- Creating custom thread factories
- Creating contextual proxies
- JTA transactions and concurrency
Skill Level Intermediate
Java EE: Contexts and Dependency Injectionwith Alex Theedom1h 43m Intermediate
Java EE: Design Patterns and Architecturewith Alex Theedom2h 44m Intermediate
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m Intermediate
1. Overview and Setup
2. Processes and Threads
3. Executor API
4. Java EE Concurrency APIs
5. Concurrency and Transactions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.