From the course: Java EE: Concurrency and Multithreading
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
ManagedThreadFactory API
From the course: Java EE: Concurrency and Multithreading
ManagedThreadFactory API
- [Instructor] Let's take a look at the ManagedThreadFactory API now. So this is a managed version of the Java Standard Edition ThreadFactory that we have taken a look at in our earlier videos. And of course, this is also to create threads in the application, and when you talk about ManagedThreadFactory, this is going to be managed by the container. Like your ManagedExecutorService and your ManagedScheduledExecutorService, this API, too, can be injected using the JNDI lookup or the Resource annotation. Additionally, the interesting thing with ManagedThreadFactory is that it can be used with the Java Standard Edition ExecutorService. Inside the Java Standard Edition platform there is an API, called java.util.concurrent.ThreadPoolExecutor. This API allows you to create and execute a service, specifying your own configuration parameters. Let's say for the full size, what is a maximum number of thread that can live in the pool, what is a keeper lifetime, how many tasks should be held in…
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
-
-
-