MCPcopy Create free account

hub / github.com/PacktPublishing/Java-9-Concurrency-Cookbook-Second-Edition / types & classes

Types & classes350 in github.com/PacktPublishing/Java-9-Concurrency-Cookbook-Second-Edition

ClassAccount
This class simulate a bank account
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Account.java:11
ClassAccount
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/data/Account.java:3
ClassAddTask
Task that add 10000 elements to a ConcurrentListDeque
Chapter07/ch07_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe01/task/AddTask.java:9
ClassAlwaysThrowsExceptionWorkerThread
This class implements a worker thread. This is a thread that is going to execute ForkJoinTask objects in a ForkJoinPool. Extends the basic class Fork
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/AlwaysThrowsExceptionWorkerThread.java:12
ClassAlwaysThrowsExceptionWorkerThreadFactory
The ForkJoinPool uses a Factory to create its Working Threads. As we want to use our Working Threads, we need to use our own Factory to create those t
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/AlwaysThrowsExceptionWorkerThreadFactory.java:15
ClassArrayGenerator
Class that generates an array of integer numbers between 0 and 10 with a size specified as parameter
Chapter05/ch05_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe05/util/ArrayGenerator.java:10
ClassBadLocks
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/BadLocks.java:6
ClassBank
This class simulates a bank or a cash dispenser that takes money from an account
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Bank.java:8
ClassBasicPerson
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/BasicPerson.java:3
ClassBasicPerson
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/BasicPerson.java:3
ClassBuffer
This class implements a buffer to stores the simulate file lines between the producer and the consumers
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Buffer.java:12
ClassCalculator
This class prints the multiplication table of a number
Chapter01/ch01_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe01/task/Calculator.java:7
ClassCleanerTask
Class that review the Event data structure and delete the events older than ten seconds
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/task/CleanerTask.java:13
ClassClient
Chapter07/ch07_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe02/task/Client.java:7
ClassCompany
This class simulates a company that pays a salary an insert money into an account
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Company.java:8
ClassConsoleClock
Class that writes the actual date to a file every second
Chapter01/ch01_recipe04/src/com/packtpub/java7/concurrency/cookbook/chapter01/recipe04/task/ConsoleClock.java:10
ClassConsumer
This class implements the consumer of the example
Chapter03/ch03_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe06/task/Consumer.java:10
ClassConsumer
This class implements a Consumer of Strings. It takes 10000 Strings from the buffer
Chapter10/ch10_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe03/task/Consumer.java:10
ClassConsumer
This class reads line from the buffer and process it
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Consumer.java:9
ClassConsumer
This class implements a consumer of events.
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/Consumer.java:7
ClassConsumer
This class implements the Consumer of the events. There is only one consumer in the example that consumes 1002 events
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Consumer.java:8
ClassConsumer
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/Consumer.java:8
ClassConsumer1
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer1.java:7
ClassConsumer2
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer2.java:8
ClassConsumer3
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/consumers/Consumer3.java:7
ClassConsumerData
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/ConsumerData.java:3
ClassContact
This class implements a Contact to store in the navigable map
Chapter07/ch07_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe05/util/Contact.java:7
ClassCounter
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Counter.java:3
ClassCounter
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Counter.java:3
ClassDBConnection
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/util/DBConnection.java:3
ClassDBConnectionOK
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/util/DBConnectionOK.java:3
ClassDataSourcesLoader
Class that simulates an initialization operation. It sleeps during four seconds
Chapter01/ch01_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe05/task/DataSourcesLoader.java:10
ClassDecrementer
This task implements a decrementer. It decrements by 1 unit all the elements of an array
Chapter07/ch07_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe08/task/Decrementer.java:10
ClassDecrementer
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Decrementer.java:8
ClassDocumentMock
This class will simulate a document generating a String array with a determined number of rows (numLines) and columns(numWords). The content of the do
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/utils/DocumentMock.java:11
ClassDocumentTask
Task that will process part of the document and calculate the number of appearances of the word in that block. If it has to process more that 10 lines
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/task/DocumentTask.java:16
ClassDoubleGenerator
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/DoubleGenerator.java:8
ClassDoubleGenerator
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/DoubleGenerator.java:8
ClassEvent
This class stores the attributes of an event. Its thread and is priority. Implements the comparable interface to help the priority queue to decide whi
Chapter07/ch07_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe03/task/Event.java:9
ClassEvent
This class implements an event for a delayed queue.
Chapter07/ch07_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe04/task/Event.java:11
ClassEvent
Class that stores event's information
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/event/Event.java:9
ClassEvent
This class stores the attributes of an event. Its thread and is priority. Implements the comparable interface to help the priority queue to decide whi
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Event.java:9
ClassEventStorage
This class implements an Event storage. Producers will storage events in it and Consumers will process them. An event will be a java.util.Date object
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/EventStorage.java:13
ClassExceptionHandler
Class that process the uncaught exceptions throwed in a Thread
Chapter01/ch01_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe07/handler/ExceptionHandler.java:9
ClassExecutableTask
This class implements the task of this example. It waits a random period of time
Chapter04/ch04_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe08/task/ExecutableTask.java:10
ClassFactorialCalculator
This class calculates the factorial of a number. It can be executed in an executor because it implements de Callable interface. The call method() will
Chapter04/ch04_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe02/task/FactorialCalculator.java:12
ClassFileGenerator
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/FileGenerator.java:6
ClassFileGenerator
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/FileGenerator.java:6
ClassFileMock
This class simulates a text file. It creates a defined number of random lines to process them sequentially.
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/utils/FileMock.java:8
ClassFileSearch
This class search for files with an extension in a directory
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:13
ClassFileSearch
This class search for files with a name in a directory
Chapter01/ch01_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe03/task/FileSearch.java:8
ClassFileSearch
This class search for files with an extension in a directory
Chapter10/ch10_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe01/task/FileSearch.java:10
ClassFlag
Chapter07/ch07_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/data/Flag.java:3
ClassFolderProcessor
Task that process a folder. Throw a new FolderProcesor task for each subfolder. For each file in the folder, it checks if the file has the extension i
Chapter05/ch05_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe03/task/FolderProcessor.java:14
ClassGoodLocks
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/GoodLocks.java:6
ClassGrouper
Group the results of each Searcher. Sum the values stored in the Results object An object of this class is executed automatically by the CyclicBarrier
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/task/Grouper.java:11
ClassHandler
This class manages the exceptions thrown by the worker threads. Implements the interface every class of this kind has to implement
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/Handler.java:11
ClassHashFiller
Chapter07/ch07_recipe06/src/com/packtpub/java8/concurrency/cookbook/chapter07/recipe06/task/HashFiller.java:10
ClassIncrementer
This task implements an incrementer. It increments by 1 all the elements of an array
Chapter07/ch07_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe08/task/Incrementer.java:10
ClassIncrementer
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Incrementer.java:8
ClassItem
Chapter06/ch06_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe09/items/Item.java:3
ClassItem
Chapter08/ch08_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe11/spliterator/Item.java:3
ClassJob
This class simulates a job that send a document to print.
Chapter03/ch03_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe01/task/Job.java:7
ClassJob
This class simulates a job that send a document to print.
Chapter02/ch02_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe03/task/Job.java:7
ClassLazyDBConnection
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/util/DBConnectionOK.java:9
ClassLineTask
Task that will process a fragment of a line of the document. If the fragment is too big (100 words or more), it split it in two parts and throw to tas
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/task/LineTask.java:17
ClassMain
Main class of the example. Creates five tasks that wait a random period of time. Waits 5 seconds and cancel all the tasks. Then, write the results of
Chapter04/ch04_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe08/core/Main.java:17
ClassMain
Main class of the example. Send 5 tasks to an scheduled executor Task 0: Delay of 1 second Task 1: Delay of 2 seconds Task 2: Delay of 3 seconds
Chapter04/ch04_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe05/core/Main.java:19
ClassMain
Main class of the example creates all the necessary objects and throws the tasks
Chapter04/ch04_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe09/core/Main.java:16
ClassMain
This is the main class of the example. Creates two user validation systems and execute them in an Executor using the invokeAny() method. If the user i
Chapter04/ch04_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe03/core/Main.java:18
ClassMain
Main class of the example. Creates and execute ten FactorialCalculator tasks in an executor controlling when they finish to write the results calculat
Chapter04/ch04_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe02/core/Main.java:18
ClassMain
Main class of the example. Creates a server and 100 request of the Task class that sends to the server
Chapter04/ch04_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe01/core/Main.java:11
ClassMain
Main class of the example. Send a task to the executor that will execute every two seconds. Then, control the remaining time for the next execution of
Chapter04/ch04_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe06/core/Main.java:16
ClassMain
Main class of the example. Execute a task trough an executor, waits 2 seconds and then cancel the task.
Chapter04/ch04_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe07/core/Main.java:15
ClassMain
Main class of the example. Launch three tasks using the invokeAll() method and then prints their results to the console
Chapter04/ch04_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe04/core/Main.java:18
ClassMain
Main class of the example. Executes five threads that store their events in a common priority queue and writes them in the console to verify the corre
Chapter07/ch07_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe03/core/Main.java:14
next →1–100 of 350, ranked by callers