Overview of the Java Executor Framework (Parts 2 and 3)

preview_player
Показать описание
This video continues the overview of the Java Executor framework, focusing on the key interfaces and classes in this framework, as well as the factory methods in the Executors class.
Рекомендации по теме
Комментарии
Автор

0:38 key interfaces of Java Executor framework
0:42 Executor, ExecutorService, ScheduledExecutorService, CompletionService
0:53 Executor
1:05 key purpose: decouples task submission interface/means from the mechanisms that are used to execute the tasks
1:43 ExecutorService - work cores of executor framework
1:58
2:10 manage the lifecycle of ExecutorService
2:24 ScheduledExecutorService
3:06 CompletionService

4:19 part 3 of Executor framework
4:24 factory methods provided by the Java Executors class
4:30 idea is to 4:45 in older version of Java (before Java 8), they would define a framework with a bunch of classes that implement interfaces and a static utility class
4:55 utility class defines a bunch of factory methods that would make instances of the Executor framework
5:21 utility class in Java is basically a final class with a private constructor that defines a set of final static methods
5:57 utility class has a private constructor
6:23 class with private constructor can not be instantiated
7:54 DefaultThreadFactory

ruixue