MCPcopy Create free account

hub / github.com/PacktPublishing/Java-9-Concurrency-Cookbook-Second-Edition / functions

Functions896 in github.com/PacktPublishing/Java-9-Concurrency-Cookbook-Second-Edition

Methodmain
@param args
Chapter09/ch09_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe07/core/Main.java:16
Methodmain
@param args
Chapter09/ch09_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe10/core/Main.java:15
Methodmain
(String[] args)
Chapter09/ch09_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe11/main/Main.java:7
Methodmain
@param args
Chapter09/ch09_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe06/core/Main.java:18
Methodmain
@param args
Chapter09/ch09_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe01/core/Main.java:19
Methodmain
@param args
Chapter09/ch09_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe03/core/Main.java:21
Methodmain
(String[] args)
Chapter02/ch02_recipe01_problem/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/main/Main.java:9
Methodmain
Main method of the example @param args
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/core/Main.java:19
Methodmain
(String[] args)
Chapter02/ch02_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe06/main/Main.java:12
Methodmain
Main method of the example
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/core/Main.java:15
Methodmain
Main method of the class. Run ten jobs in parallel that send documents to the print queue at the same time.
Chapter02/ch02_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe03/core/Main.java:18
Methodmain
(String[] args)
Chapter02/ch02_recipe01_solution/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/main/Main.java:9
Methodmain
Main class of the example @param args
Chapter02/ch02_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe04/core/Main.java:17
Methodmain
@param args
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/core/Main.java:10
Methodmain
@param args
Chapter11/app_recipe03/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe03/core/Main.java:13
Methodmain
(String[] args)
Chapter11/app_recipe12/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe12/main/Main.java:17
Methodmain
@param args
Chapter11/app_recipe04/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe04/core/Main.java:15
Methodmain
@param args
Chapter11/app_recipe08/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe08/core/Main.java:17
Methodmain
@param args
Chapter11/app_recipe05/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe05/core/Main.java:15
Methodmain
@param args
Chapter11/app_recipe09/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe09/core/Main.java:12
Methodmain
@param args
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe06/core/Main.java:19
Methodmain
@param args
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/core/Main.java:20
Methodmain
@param args
Chapter08/ch08_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe01/core/Main.java:22
Methodmain
@param args
Chapter08/ch08_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe05/core/Main.java:18
Methodmain
@param args
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/core/Main.java:16
Methodmain
@param args
Chapter08/ch08_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe10/core/Main.java:16
Methodmain
@param args
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/core/Main.java:17
Methodmain
@param args
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/core/Main.java:19
Methodmain
(String[] args)
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/main/Main.java:13
Methodmain
(String[] args)
Chapter08/ch08_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe11/main/Main.java:10
Methodmain
@param args
Chapter08/ch08_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter08/reciper07/core/Main.java:16
Methodmain
@param args
Chapter08/ch08_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe02/core/Main.java:19
MethodnewThread
This method creates a new Worker Thread. @param pool The ForkJoinPool where the thread that is creater is going to execute
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/AlwaysThrowsExceptionWorkerThreadFactory.java:22
MethodnewThread
Method that creates a worker thread for the Fork/Join framework @param pool ForkJoinPool where the thread will be executed @return a MyWorkerThread th
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyWorkerThreadFactory.java:19
MethodnewThread
Method that create a new MyThread object to execute the Runnable object that receives as parameter
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyThreadFactory.java:35
MethodonAdvance
This method is called when the last register thread calls one of the advance methods in the actual phase @param phase Actual phase @param registeredPa
Chapter03/ch03_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe05/task/MyPhaser.java:19
MethodonComplete
()
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer2.java:12
MethodonComplete
()
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer3.java:9
MethodonComplete
()
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer1.java:9
MethodonComplete
()
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/Consumer.java:17
MethodonCompletion
(CountedCompleter<?> completer)
Chapter05/ch05_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe03/task/FolderProcessor.java:108
MethodonError
(Throwable exception)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer2.java:17
MethodonError
(Throwable exception)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer3.java:15
MethodonError
(Throwable exception)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer1.java:15
MethodonNext
(Item item)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer2.java:23
MethodonNext
(Item item)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer3.java:21
MethodonNext
(Item item)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer1.java:21
MethodonStart
Method that is going to execute where the Worker Thread begins its execution
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/AlwaysThrowsExceptionWorkerThread.java:27
MethodonStart
This method is called when a worker thread of the Fork/Join framework begins its execution. It initializes its task counter
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyWorkerThread.java:33
MethodonSubscribe
(Flow.Subscription subscription)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer2.java:31
MethodonSubscribe
(Flow.Subscription subscription)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer3.java:28
MethodonSubscribe
(Flow.Subscription subscription)
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer1.java:28
MethodonTermination
This method is called when a worker thread of the Fork/Join framework ends its execution. It writes in the console the value of the taskCounter attrib
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyWorkerThread.java:44
Methodoperation1
()
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/BadLocks.java:15
Methodoperation1
()
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/GoodLocks.java:14
Methodoperation2
()
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/BadLocks.java:30
Methodoperation2
()
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/GoodLocks.java:29
MethodrejectedExecution
Method that will be executed for each rejected task @param r Task that has been rejected @param executor Executor that has rejected the task
Chapter04/ch04_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe01/task/RejectedTaskController.java:19
Methodrun
Main method of the class. Create three ReportGenerator tasks and executes them through a CompletionService
Chapter04/ch04_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe09/task/ReportRequest.java:37
Methodrun
Main method of the class. While the variable end is false, it calls the poll method of the CompletionService and waits 20 seconds for the end of a Rep
Chapter04/ch04_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe09/task/ReportProcessor.java:39
Methodrun
This method implements the execution of the task. Waits a random period of time and finish
Chapter04/ch04_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe01/task/Task.java:34
Methodrun
Main method of the example. Writes a message to the console with the actual date
Chapter04/ch04_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe06/task/Task.java:32
Methodrun
Main method of the task. It generates 1000 events and store them in the queue
Chapter07/ch07_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe03/task/Task.java:39
Methodrun
()
Chapter07/ch07_recipe06/src/com/packtpub/java8/concurrency/cookbook/chapter07/recipe06/task/HashFiller.java:18
Methodrun
Main method of the class. It decrements all the elements of the array
Chapter07/ch07_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe08/task/Decrementer.java:29
Methodrun
Main method of the task. Increment all the elements of the array
Chapter07/ch07_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe08/task/Incrementer.java:29
Methodrun
Core method of the Runnable
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Company.java:26
Methodrun
Core method of the Runnable
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Bank.java:27
Methodrun
Main method of the class. Add 10000 elements to the list using the add() method that adds the element at the end of the list
Chapter07/ch07_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe01/task/AddTask.java:30
Methodrun
Main method of the task. Deletes 10000 elements from the list using the pollFirst() that deletes the first element of the list and pollLast() that del
Chapter07/ch07_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe01/task/PollTask.java:31
Methodrun
()
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Decrementer.java:16
Methodrun
()
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Incrementer.java:16
Methodrun
()
Chapter07/ch07_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe02/task/Client.java:15
Methodrun
Main method of the task. Generates 1000 contact objects and store them in the navigable map
Chapter07/ch07_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe05/task/Task.java:40
Methodrun
()
Chapter07/ch07_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Task.java:15
Methodrun
()
Chapter07/ch07_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/VolatileTask.java:15
Methodrun
Main method of the task. It generates 100 events with the same activation time. The activation time will be the execution time of the thread plus the
Chapter07/ch07_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe04/task/Task.java:40
Methodrun
Main method of the Grouper. Sum the values stored in the Results object
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/task/Grouper.java:29
Methodrun
Main method of the searcher. Look for the number in a subset of rows. For each row, saves the number of occurrences of the number in the array of resu
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/task/Searcher.java:67
Methodrun
Core method of the Job. Sends the document to the print queue and waits for its finalization
Chapter03/ch03_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe01/task/Job.java:26
Methodrun
Main method of the producer. It produces 100 events. 10 cicles of 10 events. After produce 10 events, it uses the exchanger object to synchronize with
Chapter03/ch03_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe06/task/Producer.java:38
Methodrun
Main method of the producer. It consumes all the events produced by the Producer. After processes ten events, it uses the exchanger object to synchron
Chapter03/ch03_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe06/task/Consumer.java:37
Methodrun
()
Chapter03/ch03_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe07/task/SeedGenerator.java:14
Methodrun
Main method of the student. It arrives to the exam and does three exercises. After each exercise, it calls the phaser to wait that all the students fi
Chapter03/ch03_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe05/task/Student.java:30
Methodrun
Main method of the class. See the comments inside to a better description of it
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:60
Methodrun
This is the main method of the Controller of the VideoConference. It waits for all the participants and the, starts the conference
Chapter03/ch03_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe02/task/Videoconference.java:44
Methodrun
Core method of the participant. Waits a random time and joins the VideoConference
Chapter03/ch03_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe02/task/Participant.java:34
Methodrun
()
Chapter01/ch01_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe09/task/Task.java:11
Methodrun
Method that do the calculations
Chapter01/ch01_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe01/task/Calculator.java:12
Methodrun
Main class of the Runnable
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/task/WriterTask.java:33
Methodrun
Main method of the class
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/task/CleanerTask.java:35
Methodrun
Main method of the class. Saves the start date and writes it to the console when it starts and when it ends
Chapter01/ch01_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe08/task/UnsafeTask.java:22
Methodrun
Main method of the class
Chapter01/ch01_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe08/task/SafeTask.java:25
Methodrun
Central method of the class
Chapter01/ch01_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe02/task/PrimeGenerator.java:11
Methodrun
Main method of the class
Chapter01/ch01_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe07/task/Task.java:12
Methodrun
()
Chapter01/ch01_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe10/task/Task.java:7
Methodrun
Main method of the class
Chapter01/ch01_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe03/task/FileSearch.java:35
Methodrun
Main method of the class
Chapter01/ch01_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe05/task/NetworkConnectionsLoader.java:16
Methodrun
Main method of the class
Chapter01/ch01_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe05/task/DataSourcesLoader.java:16
Methodrun
Main method of the class
Chapter01/ch01_recipe04/src/com/packtpub/java7/concurrency/cookbook/chapter01/recipe04/task/ConsoleClock.java:15
← previousnext →701–800 of 896, ranked by callers