Java EE: Concurrency and Multithreading
Offered By: LinkedIn Learning
Course Description
Overview
Make your Java applications faster and more resource efficient. Learn how to use Java concurrency and multithreading APIs to execute multiple tasks simultaneously.
Syllabus
Introduction
- Welcome
- What you should know
- What is concurrency?
- Project setup
- Process vs. thread
- Java SE multithreading overview
- Using the Thread class to create and run a thread
- Using the Runnable interface to create and run a thread
- Limitations of using basic APIs
- Features of the Executor framework and thread pools
- Callables and futures
- Executor and ExecutorService
- ExecutorService overview
- Define UserDao and user beans
- Write the UserProcessor callable implementation
- Write a test class and run the application
- Different thread pools
- ExecutorService: invokeAny and invokeAll
- ExecutorService shutdown
- ScheduledExecutorService overview
- The schedule method
- scheduleAtFixedRate and scheduleWithFixedDelay
- ThreadFactory API
- Create a custom thread factory
- Need for Java EE concurrency
- Java EE concurrency APIs
- Set up a Java EE RESTful application
- Running and testing the Java EE RESTful application
- Important Java EE terms
- ManagedExecutorService (MES) overview
- Define the bank account related beans and DAO class
- Add methods in the DAO class
- Define ReportProcessor
- Write REST class for injecting MES objects
- Verify code and add the REST method
- Run and test the ManagedExecutorService application
- ManagedScheduledExecutorService overview
- Defining the URLProcessor for the thread's job
- Add a REST method to call the URLProcessor
- Important pointers and API overview
- ManagedThreadFactory API
- Create a single thread with ManagedThreadFactory
- ManagedThreadFactory with ThreadPoolExecutor
- ContextService API
- Create a contextual proxy
- Java Transaction API (JTA) transactions with concurrency
- Define the data sources in GlassFish server
- Define the session bean class for database operations
- Define the transaction processor
- Define the REST class
- Run the JTA application
- Next steps
Taught by
Ketkee Aryamane
Related Courses
Derivatives Professional Certificate ExaminationNew York Institute of Finance via edX Debt & Money Markets: Concepts, Instruments, Risks and Derivatives
Indian Institute of Management Bangalore via edX Derivatives Markets: Advanced Modeling and Strategies
Massachusetts Institute of Technology via edX Foundations of Modern Finance II
Massachusetts Institute of Technology via edX Forwards and Futures
New York Institute of Finance via edX