Join Ketkee Aryamane for an in-depth discussion in this video ExecutorService: invokeAny and invokeAll, part of Java EE: Concurrency and Multithreading.
- [Instructor] Okay so now that we've seen…how to submit a task via the ExecutorService,…let's take a look at a few other APIs.…The first one is invokeAny and invokeAll.…Now both of these methods help you submit…a collection of tasks unlike in the previous demo…where we submitted each task individually.…And when you call the invokeAll method,…it makes sure that it submits all the tasks,…executes them and returns their output.…And that output will be a list of futures this time…because it's a collection of tasks okay?…Now the invokeAny method is a little different.…
It is going to make sure that it submits all your tasks,…however, it is going to return you…the output of the first successful…or the exceptional execution okay?…So what we're going to do,…we are going to go back to the project…and we're going to make a very small example,…where to understand how these methods work.…So let's make a class and let's say, LoggingProcessor.…Let this implement a callable.…Let's say this returns a Boolean.…
So callable of a Boolean.…
- 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.