From the course: Java EE: Concurrency and Multithreading
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
ManagedScheduledExecutorService overview
From the course: Java EE: Concurrency and Multithreading
ManagedScheduledExecutorService overview
- [Instructor] Now, let's take a look at the Managed Scheduled Executor Service Demo that we will look at here. Let's look at its overview. So, by now we know that Managed Scheduled Executor Service is an extension to the standard platform's Scheduled Executor Service and we know its objective. It's basically going to provide you methods to submit jobs, submit tasks, which occur at regular intervals or with definite days. And this particular resource, Managed Scheduled Executor Service, that can be obtained through the container, again, using the JNDI look up or the resource annotation. Okay, so now let's understand what we're going to do as a part of the demo. The use case is health check for the application. So, when you say managed scheduled, as the name suggests, it's kind of a scheduling job that you want to run. So, we are going to make sure that this job that we're going to run is going to check the health of the application. So, let's say I have a URL off my application and I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Need for Java EE concurrency4m 14s
-
(Locked)
Java EE concurrency APIs3m 52s
-
(Locked)
Set up a Java EE RESTful application8m 4s
-
(Locked)
Running and testing the Java EE RESTful application4m 47s
-
(Locked)
Important Java EE terms4m 4s
-
(Locked)
ManagedExecutorService (MES) overview3m 20s
-
(Locked)
Define the bank account related beans and DAO class3m 28s
-
(Locked)
Add methods in the DAO class10m 30s
-
(Locked)
Define ReportProcessor7m 42s
-
(Locked)
Write REST class for injecting MES objects6m 51s
-
(Locked)
Verify code and add the REST method8m 42s
-
(Locked)
Run and test the ManagedExecutorService application2m 59s
-
(Locked)
ManagedScheduledExecutorService overview2m 22s
-
(Locked)
Defining the URLProcessor for the thread's job6m 47s
-
(Locked)
Add a REST method to call the URLProcessor5m 20s
-
(Locked)
Important pointers and API overview6m 22s
-
(Locked)
ManagedThreadFactory API1m 26s
-
(Locked)
Create a single thread with ManagedThreadFactory6m 7s
-
(Locked)
ManagedThreadFactory with ThreadPoolExecutor7m 2s
-
(Locked)
ContextService API3m 7s
-
(Locked)
Create a contextual proxy9m 15s
-
-
-