Join Ketkee Aryamane for an in-depth discussion in this video scheduleAtFixedRate and scheduleWithFixedDelay, part of Java EE: Concurrency and Multithreading.
- [Teacher] Let's look at the other…two flavors of the method that we have.…Schedule With Fixed Delay, and shedule At Fixed Rate.…Let's go back to the IDE and I'm going…to come in this previous scheduled call that we did.…And instead, I'm going to say,…service.scheduleAtFixedRate.…Okay, It is going to demand from you the runnable instance…so, let's say cleaning scheduler, then, an initial delay…that will be five seconds, a long period,…let's say that four seconds and of course,…the time unit is seconds that we want.…
Now, please understand that scheduling jobs…generally occur in days, okay, but right now,…for the demonstration purposes,…I'm keeping the time unit as seconds.…Otherwise, I wouldn't be able to show you…how it is scheduled and how the run happens.…Okay.…There's one more thing that I have to do,…since I'm scheduling this job,…I have to run it periodically and I'm going to show you…at least two runs or three runs of this method call.…And in order to do that, I'll have to go back…to the cleaning scheduler and just comment on this call.…
Author
Released
9/27/2018- 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
Duration
Views
Related Courses
-
Java EE: Bean Validation
with Alex Theedom2h 20m Intermediate -
Java EE: Contexts and Dependency Injection
with Alex Theedom1h 43m Intermediate -
Java EE: Design Patterns and Architecture
with Alex Theedom2h 44m Intermediate -
Java EE: Servlets and JavaServer Pages (JSP)
with Ketkee Aryamane6h 14m Intermediate
-
Introduction
-
Welcome54s
-
What you should know1m 7s
-
-
1. Overview and Setup
-
What is concurrency?3m 31s
-
Project setup6m 43s
-
-
2. Processes and Threads
-
3. Executor API
-
Callables and futures2m 16s
-
Executor and ExecutorService3m 58s
-
ExecutorService overview3m 3s
-
Different thread pools5m 20s
-
ExecutorService shutdown5m 18s
-
The schedule method5m 16s
-
ThreadFactory API2m 34s
-
4. Java EE Concurrency APIs
-
Need for Java EE concurrency4m 14s
-
Java EE concurrency APIs3m 52s
-
Important Java EE terms4m 4s
-
Add methods in the DAO class10m 30s
-
Define ReportProcessor7m 42s
-
ManagedThreadFactory API1m 26s
-
ContextService API3m 7s
-
Create a contextual proxy9m 15s
-
-
5. Concurrency and Transactions
-
Define the REST class3m 20s
-
Run the JTA application2m 44s
-
Conclusion
-
Next steps44s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: scheduleAtFixedRate and scheduleWithFixedDelay