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

↓ 1 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Point.java:16
↓ 1 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Point.java:16
↓ 1 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Point.java:16
↓ 1 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Point.java:16
↓ 1 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Point.java:16
↓ 1 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Point.java:16
↓ 1 callersMethodsetX
(int x)
Chapter02/ch02_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe06/task/Position.java:12
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/Point.java:28
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Point.java:28
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Point.java:28
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Point.java:28
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Point.java:28
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Point.java:28
↓ 1 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Point.java:28
↓ 1 callersMethodsetY
(int y)
Chapter02/ch02_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe06/task/Position.java:20
↓ 1 callersMethodshowInfo
This method prints the final results of the search
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:97
↓ 1 callersMethodstopProcessing
Method that establish the value of the end attribute @param end New value of the end attribute.
Chapter04/ch04_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe09/task/ReportProcessor.java:62
↓ 1 callersMethodstudentsArrived
This method is called in the change from phase 0 to phase 1 @return false to continue with the execution
Chapter03/ch03_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe05/task/MyPhaser.java:37
↓ 1 callersMethodsubtractAmount
Subtract an import to the balance of the account @param amount import to subtract to the balance
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Account.java:73
↓ 1 callersMethodtryAdvance
(Consumer<? super Item> consumer)
Chapter08/ch08_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe11/spliterator/MySpliterator.java:28
↓ 1 callersMethodtryLock
Method that try to acquire the lock. If it can, the method returns the true value. It it can't, the method return the false value
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/task/MyLock.java:51
↓ 1 callersMethodupdatePrices
Method that updates the prices of the assigned products to the task
Chapter05/ch05_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe01/task/Task.java:71
↓ 1 callersMethodwriteThreadInfo
This method writes the state of a thread in a file @param pw : PrintWriter to write the data @param thread : Thread whose infor
Chapter01/ch01_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe01/main/Main.java:91
MethodAccount
()
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Account.java:28
MethodAccount
()
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/data/Account.java:9
MethodAddTask
Constructor of the class @param list List to add the elements
Chapter07/ch07_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe01/task/AddTask.java:22
MethodAlwaysThrowsExceptionWorkerThread
Constructor of the class. Call the constructor of the parent class @param pool ForkJoinPool where the thread is going to execute
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/AlwaysThrowsExceptionWorkerThread.java:19
MethodBadLocks
(Lock lock1, Lock lock2)
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/BadLocks.java:10
MethodBank
Constructor of the class. Initializes the account @param account The account affected by the operations
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Bank.java:19
MethodBuffer
Constructor of the class. Initialize all the objects @param maxSize The size of the buffer
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Buffer.java:46
MethodCleanerTask
Constructor of the class @param deque data structure that stores events
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/task/CleanerTask.java:26
MethodClient
(LinkedBlockingDeque<String> requestList)
Chapter07/ch07_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe02/task/Client.java:11
MethodCompany
Constructor of the class. Initializes the account @param account the account affected by the operations
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Company.java:19
MethodConsumer
Constructor of the class. Initializes its attributes @param buffer Buffer to save the events produced @param exchanger Exchanger to syncrhonize with t
Chapter03/ch03_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe06/task/Consumer.java:27
MethodConsumer
Constructor of the class. It initializes all its attributes @param name Name of the consumer @param buffer Buffer to take the Strings
Chapter10/ch10_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe03/task/Consumer.java:27
MethodConsumer
Constructor of the class. Initialize the buffer @param buffer
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Consumer.java:21
MethodConsumer
Constructor of the class. Initialize the storage @param storage The store to work with
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/Consumer.java:18
MethodConsumer
Constructor of the class. Initializes its attributes @param buffer Buffer from which the consumer takes the events
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Consumer.java:19
MethodConsumer
(String name)
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/Consumer.java:13
MethodContact
Constructor of the class @param name Name of the contact @param phone Phone number of the contact
Chapter07/ch07_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe05/util/Contact.java:27
MethodCounter
()
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Counter.java:8
MethodCounter
()
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Counter.java:8
MethodDBConnection
()
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/util/DBConnection.java:7
MethodDBConnectionOK
()
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/util/DBConnectionOK.java:5
MethodDecrementer
Constructor of the class @param vector The array to decrement is elements
Chapter07/ch07_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe08/task/Decrementer.java:21
MethodDecrementer
(Account account)
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Decrementer.java:12
MethodDocumentTask
Constructor of the class @param document Document to process @param start Starting position of the block of the document this task has to process @par
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/task/DocumentTask.java:46
MethodEvent
Constructor of the thread. It initializes its attributes @param thread Number of the thread that generates the event @param priority
Chapter07/ch07_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe03/task/Event.java:28
MethodEvent
Constructor of the class @param startDate Date when we want to activate the event
Chapter07/ch07_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe04/task/Event.java:24
MethodEvent
Constructor of the thread. It initializes its attributes @param thread Number of the thread that generates the event @param priority Priority of the e
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Event.java:25
MethodEventStorage
Constructor of the class. Initializes the attributes.
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/EventStorage.java:27
MethodExecutableTask
Constructor of the class @param name The name of the class
Chapter04/ch04_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe08/task/ExecutableTask.java:21
MethodFactorialCalculator
Constructor of the class. Initializes the attributes @param number Number to calculate the factorial
Chapter04/ch04_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe02/task/FactorialCalculator.java:23
MethodFileMock
Constructor of the class. Generate the random data of the file @param size: Number of lines in the simulate file @param length:
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/utils/FileMock.java:27
MethodFileSearch
Constructor of the class. Initializes its attributes @param initPath Initial path for the search @param fileExtension Extension
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:49
MethodFileSearch
Constructor of the class @param initPath : Initial path for the search @param fileName : Name of the file we are searching for
Chapter01/ch01_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe03/task/FileSearch.java:27
MethodFileSearch
Constructor of the class. Initializes its attributes @param initPath Initial path for the search @param end Extension of the files we are searching fo
Chapter10/ch10_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe01/task/FileSearch.java:34
MethodFolderProcessor
Constructor of the class @param completer Completer of the task; @param path Path of the folder this task is going to process @param extension Extensi
Chapter05/ch05_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe03/task/FolderProcessor.java:48
MethodGoodLocks
(Lock lock1, Lock lock2)
Chapter11/app_recipe02/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe02/GoodLocks.java:9
MethodGrouper
Constructor of the class. Initializes its attributes @param results Results object with the ocurrences of the number in each row
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/task/Grouper.java:22
MethodHashFiller
(ConcurrentHashMap<String, ConcurrentLinkedDeque<Operation>> userHash)
Chapter07/ch07_recipe06/src/com/packtpub/java8/concurrency/cookbook/chapter07/recipe06/task/HashFiller.java:14
MethodIncrementer
Constructor of the class @param vector Array to store the elements to increment
Chapter07/ch07_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe08/task/Incrementer.java:21
MethodIncrementer
(Account account)
Chapter07/ch07_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe09/task/Incrementer.java:12
MethodJob
Constructor of the class. Initializes the queue @param printQueue
Chapter03/ch03_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe01/task/Job.java:18
MethodJob
Constructor of the class. Initializes the queue @param printQueue
Chapter02/ch02_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe03/task/Job.java:18
MethodLineTask
Constructor of the class @param line A line of the document @param start Position of the line where the task starts its process @param end Position of
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/task/LineTask.java:47
MethodMatrixMock
Constructor of the class. Generates the bi-dimensional array of numbers. While generates the array, it counts the times that appears the number we are
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/utils/MatrixMock.java:24
MethodMyAbstractQueuedSynchronizer
Constructor of the class
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/task/MyAbstractQueuedSynchronizer.java:29
MethodMyExecutor
Constructor of the executor. Call the parent constructor and initializes the HashMap @param corePoolSize Number of threads to keep in the pool @param
Chapter08/ch08_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe01/executor/MyExecutor.java:35
MethodMyLock
Constructor of the class. It initializes its attribute
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/task/MyLock.java:23
MethodMyPriorityTask
Constructor of the task. It initialize its attributes @param name Name of the task @param priority Priority of the task
Chapter08/ch08_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe02/task/MyPriorityTask.java:29
MethodMyPriorityTransferQueue
Constructor of the class
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/MyPriorityTransferQueue.java:42
MethodMyPublisher
()
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/MyPublisher.java:16
MethodMyRecursiveTask
Constructor of the class. It initializes the attributes of the task @param array Array to be summed @param start Start position of the block of the a
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyRecursiveTask.java:35
MethodMyScheduledTask
Constructor of the class. It initializes the attributes of the class @param runnable Runnable submitted to be executed by the task @param result Resul
Chapter08/ch08_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe05/task/MyScheduledTask.java:50
MethodMyScheduledThreadPoolExecutor
Constructor of the class. Calls the constructor of its parent class using the super keyword @param corePoolSize Number of threads to keep in the pool
Chapter08/ch08_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe05/task/MyScheduledThreadPoolExecutor.java:19
MethodMySpliterator
(Item[][] items, int start, int end)
Chapter08/ch08_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe11/spliterator/MySpliterator.java:11
MethodMySupplier
()
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/MySupplier.java:10
MethodMySupplier
()
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/MySupplier.java:10
MethodMyThread
Constructor of the class. It establishes the value of the creation date attribute @param target Runnable object that this thread is going to execute @
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyThread.java:33
MethodMyThread
Constructor of the class. Use the constructor of the Thread class and storeas the creation date of the Thread @param target Task to execute @param nam
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/task/MyThread.java:31
MethodMyThreadFactory
Constructor of the class @param name Base name of the Thread objects created by this Factory
Chapter01/ch01_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe10/factory/MyThreadFactory.java:27
MethodMyThreadFactory
Constructor of the class. Initializes its attributes @param prefix Prefix to use in the name of the threads
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyThreadFactory.java:26
MethodMyThreadFactory
Constructor of the class. Initialize its parameters @param prefix First part of the name of the threads created with this factory
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/task/MyThreadFactory.java:26
MethodMyThreadGroup
Constructor of the class. Calls the parent class constructor @param name
Chapter01/ch01_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe09/group/MyThreadGroup.java:15
MethodMyWorkerTask
Constructor of the class. Initializes its attributes @param name Name of the task
Chapter08/ch08_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter08/reciper07/task/MyWorkerTask.java:27
MethodMyWorkerThread
Constructor of the class. It calls the constructor of its parent class using the super keyword @param pool ForkJoinPool where the thread will be execu
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyWorkerThread.java:25
MethodNumberListGenerator
(int size)
Chapter03/ch03_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe07/task/NumberListGenerator.java:11
← previousnext →301–400 of 896, ranked by callers