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

↓ 2 callersMethodscheduleAtFixedRate
Method that schedule in the executor a periodic tasks. It calls the method of its parent class using the super keyword and stores the period of the ta
Chapter08/ch08_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe05/task/MyScheduledThreadPoolExecutor.java:39
↓ 2 callersMethodsetContent
@param content the content to set
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/data/News.java:37
↓ 2 callersMethodsetDate
@param date the date to set
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/data/News.java:52
↓ 2 callersMethodsetName
Establish the name of the task @param name The name of the task that generates the result
Chapter04/ch04_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe04/task/Result.java:29
↓ 2 callersMethodsetPendingLines
Establish the value of the variable @param pendingLines
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Buffer.java:108
↓ 2 callersMethodsetPrice
This method establish the price of the product @param price the price of the product
Chapter05/ch05_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe01/util/Product.java:47
↓ 2 callersMethodsetTime
@param time the time to set
Chapter07/ch07_recipe06/src/com/packtpub/java8/concurrency/cookbook/chapter07/recipe06/util/Operation.java:52
↓ 2 callersMethodsetTitle
@param title the title to set
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/data/News.java:22
↓ 2 callersMethodsetX
@param x the x to set
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Point.java:16
↓ 2 callersMethodsetY
@param y the y to set
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Point.java:28
↓ 2 callersMethodshowLog
Method that writes information about a semaphore @param semaphore Semaphore to write its log information
Chapter10/ch10_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe05/core/MainSemaphore.java:57
↓ 2 callersMethodshowLog
(ForkJoinPool pool)
Chapter09/ch09_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe04/core/Main.java:71
↓ 2 callersMethodshowLog
Method that writes in the console information about an executor @param executor Executor this method is going to process
Chapter09/ch09_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe03/core/Main.java:74
↓ 2 callersMethodtestPrintQueue
(boolean fairMode)
Chapter02/ch02_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe03/core/Main.java:26
↓ 2 callersMethodtoString
Method that generates a String with information about the creation date and the execution time of the thread
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyThread.java:86
↓ 2 callersMethodtransfer
Transfer an element to the consumer. If there is a consumer waiting, puts the element on the queue and return the true value. Else, puts the value in
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/MyPriorityTransferQueue.java:77
↓ 2 callersMethodvalidate
Method that validates a user @param name Name of the user @param password Password of the user @return true if the user is validated and false if not
Chapter04/ch04_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe03/task/UserValidator.java:33
↓ 2 callersMethodvehiclePay
()
Chapter02/ch02_recipe01_problem/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingCash.java:13
↓ 2 callersMethodvehiclePay
()
Chapter02/ch02_recipe01_solution/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingCash.java:13
↓ 2 callersMethodwriteData
()
Chapter11/app_recipe04/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe04/utils/Operations.java:15
↓ 1 callersMethodaddAmount
Add an import to the balance of the account @param amount import to add to the balance
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Account.java:61
↓ 1 callersMethodaddOperationToHash
(ConcurrentHashMap<String, ConcurrentLinkedDeque<Operation>> userHash, Operation operation)
Chapter07/ch07_recipe06/src/com/packtpub/java8/concurrency/cookbook/chapter07/recipe06/task/HashFiller.java:35
↓ 1 callersMethodaddResults
Method that adds the results of the two subtasks create by this task @param task1 First task @param task2 Second task @return The sum of the results o
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyRecursiveTask.java:82
↓ 1 callersMethodaddTask
This method is called for each task to increment the task counter of the worker thread
Chapter08/ch08_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe06/task/MyWorkerThread.java:53
↓ 1 callersMethodcancelTasks
Method that cancel all the tasks in the list @param cancelTask
Chapter05/ch05_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe05/util/TaskManager.java:39
↓ 1 callersMethodcheckFile
Checks if a name of a file has the extension the task is looking for @param name name of the file @return true if the name has the extension or false
Chapter05/ch05_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe03/task/FolderProcessor.java:121
↓ 1 callersMethodclean
Method that review the Events data structure and delete the events older than ten seconds @param date
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/task/CleanerTask.java:49
↓ 1 callersMethodcleanResources
Method for cleaning the resources. In this case, is empty
Chapter01/ch01_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe03/task/FileSearch.java:51
↓ 1 callersMethodclose
()
Chapter02/ch02_recipe01_solution/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingCash.java:17
↓ 1 callersMethodcompareTo
(Person otherPerson)
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Person.java:118
↓ 1 callersMethodcompute
Main method of the child tasks. It has to be overridden in the child classes and implement on it its main logic
Chapter08/ch08_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter08/reciper07/task/MyWorkerTask.java:77
↓ 1 callersMethodcriticalSection
()
Chapter11/app_recipe09/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe09/task/Task.java:36
↓ 1 callersMethoddecreaseRequested
()
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/MySubscription.java:34
↓ 1 callersMethoddirectoryProcess
Method that process a directory @param file : Directory to process
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:155
↓ 1 callersMethoddirectoryProcess
Method that process a directory @param file : Directory to process @throws InterruptedException : If the thread is interrupted
Chapter01/ch01_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe03/task/FileSearch.java:63
↓ 1 callersMethoddirectoryProcess
Method that process a directory @param file : Directory to process
Chapter10/ch10_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe01/task/FileSearch.java:69
↓ 1 callersMethodendServer
This method shuts down the executor
Chapter04/ch04_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe01/task/Server.java:48
↓ 1 callersMethodfileProcess
Method that process a File @param file : File to process
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:178
↓ 1 callersMethodfileProcess
Method that process a File @param file : File to process @throws InterruptedException : If the thread is interrupted
Chapter01/ch01_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe03/task/FileSearch.java:92
↓ 1 callersMethodfileProcess
Method that process a File @param file : File to process
Chapter10/ch10_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe01/task/FileSearch.java:92
↓ 1 callersMethodfilterResults
Method that filter the results to delete the files modified more than a day before now
Chapter03/ch03_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe04/task/FileSearch.java:135
↓ 1 callersMethodfinishExam
This method is called in the change from phase 3 to phase 4 @return true. There are no more phases
Chapter03/ch03_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe05/task/MyPhaser.java:57
↓ 1 callersMethodfinishFirstExercise
This method is called in the change from phase 1 to phase 2 @return false to continue with the execution
Chapter03/ch03_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe05/task/MyPhaser.java:47
↓ 1 callersMethodgenerateArray
Method that generates an array of integer numbers between 0 and 10 with the specified size @param size The size of the array @return An array of rando
Chapter05/ch05_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe05/util/ArrayGenerator.java:18
↓ 1 callersMethodgenerateDocument
Method that generates the String matrix @param numLines Number of lines of the document @param numWords Number of words of the document @param word Wo
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/utils/DocumentMock.java:25
↓ 1 callersMethodgenerateDoubleList
(int size, int max)
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/DoubleGenerator.java:10
↓ 1 callersMethodgenerateDoubleList
(int size, int max)
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/DoubleGenerator.java:10
↓ 1 callersMethodgenerateFile
(int size)
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/FileGenerator.java:9
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/PersonGenerator.java:11
↓ 1 callersMethodgeneratePersonList
(int size)
Chapter11/app_recipe12/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe12/utils/PersonGenerator.java:10
↓ 1 callersMethodgeneratePointList
(int size)
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/PointGenerator.java:9
↓ 1 callersMethodget
()
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/MySupplier.java:14
↓ 1 callersMethodget
This method delete the first event of the storage.
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/EventStorage.java:51
↓ 1 callersMethodgetAge
(Date birthDate)
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/main/Main.java:64
↓ 1 callersMethodgetAge
@return the age
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/BasicPerson.java:22
↓ 1 callersMethodgetBirthDate
@return the birthDate
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Person.java:62
↓ 1 callersMethodgetCommission
Method that returns the accumulated commission @return the commission
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Account.java:91
↓ 1 callersMethodgetConnection
()
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/util/DBConnectionOK.java:13
↓ 1 callersMethodgetContent
@return the content
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/data/News.java:29
↓ 1 callersMethodgetData
Returns the array of results @return the array of results
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/utils/Results.java:36
↓ 1 callersMethodgetDate
Reads the Date of the event @return the Date of the event
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/event/Event.java:26
↓ 1 callersMethodgetDate
@return the date
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/data/News.java:44
↓ 1 callersMethodgetEvent
Reads the message of the event @return the message of the event
Chapter01/ch01_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe06/event/Event.java:45
↓ 1 callersMethodgetExecutionTime
Method that calculates the execution time of the thread as the difference between the finish date and the start date. @return
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyThread.java:76
↓ 1 callersMethodgetExecutionTime
Method that calculates the execution time of the thread @return The execution time of the thread
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/task/MyThread.java:65
↓ 1 callersMethodgetId
@return the id
Chapter11/app_recipe12/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe12/utils/Person.java:16
↓ 1 callersMethodgetLine
Returns the next line of the simulate file or null if there aren't more lines @return
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/utils/FileMock.java:55
↓ 1 callersMethodgetName
This method returns the name of the task @return The name of the task
Chapter04/ch04_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter04/recipe08/task/ExecutableTask.java:43
↓ 1 callersMethodgetName
@return the name
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/BasicPerson.java:10
↓ 1 callersMethodgetNumberCars
()
Chapter02/ch02_recipe01_problem/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingStats.java:41
↓ 1 callersMethodgetNumberCars
()
Chapter02/ch02_recipe01_solution/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingStats.java:59
↓ 1 callersMethodgetNumberMotorcycles
()
Chapter02/ch02_recipe01_problem/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingStats.java:45
↓ 1 callersMethodgetNumberMotorcycles
()
Chapter02/ch02_recipe01_solution/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/ParkingStats.java:66
↓ 1 callersMethodgetOperations
Method that returns the number of operations made @return the operations
Chapter07/ch07_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe07/task/Account.java:83
↓ 1 callersMethodgetOwnerName
This method returns the name of the thread that have the control of the Lock of the constant "None" if the Lock is free @return The name of the thread
Chapter09/ch09_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe01/lock/MyLock.java:27
↓ 1 callersMethodgetPrice1
Returns the first price @return the first price
Chapter02/ch02_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe04/task/PricesInfo.java:40
↓ 1 callersMethodgetPrice2
Returns the second price @return the second price
Chapter02/ch02_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe04/task/PricesInfo.java:51
↓ 1 callersMethodgetPrinter
()
Chapter03/ch03_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe01/task/PrintQueue.java:70
↓ 1 callersMethodgetRequested
@return the requested
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/MySubscription.java:30
↓ 1 callersMethodgetResults
Method that returns the list or results @return
Chapter10/ch10_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe01/task/FileSearch.java:44
↓ 1 callersMethodgetRow
This methods returns a row of the bi-dimensional array @param row the number of the row to return @return the selected row
Chapter03/ch03_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter03/recipe03/utils/MatrixMock.java:45
↓ 1 callersMethodgetStats
Method that returns the statistics of the ThreadFactory @return The statistics of the ThreadFactory
Chapter01/ch01_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe10/factory/MyThreadFactory.java:54
↓ 1 callersMethodgetSubscription
@return the subscription
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/ConsumerData.java:22
↓ 1 callersMethodgetThread
Method that returns the number of the thread that generates the event @return The number of the thread that generates the event
Chapter07/ch07_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter07/recipe03/task/Event.java:38
↓ 1 callersMethodgetThread
Method that returns the number of the thread that generates the event @return The number of the thread that generates the event
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Event.java:35
↓ 1 callersMethodgetThreads
This method returns the list of the threads queued in the lock @return The list of threads queued in the Lock
Chapter09/ch09_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe01/lock/MyLock.java:38
↓ 1 callersMethodgetTitle
@return the title
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/data/News.java:14
↓ 1 callersMethodgroupResults
Method that group the results of two DocumentTask tasks @param number1 Result of the first DocumentTask @param number2 Result of the second DocumentTa
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/task/DocumentTask.java:114
↓ 1 callersMethodgroupResults
Groups the results of two LineTasks @param number1 The result of the first LineTask @param number2 The result of the second LineTask @return The sum o
Chapter05/ch05_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter05/recipe02/task/LineTask.java:85
↓ 1 callersMethodhashCode
()
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/Person.java:140
↓ 1 callersMethodinsert
Insert a line in the buffer @param line line to insert in the buffer
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Buffer.java:61
↓ 1 callersMethodisCanceled
@return the canceled
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/MySubscription.java:23
↓ 1 callersMethodisPrime
Method that calculate if a number is prime or not @param number : The number @return A boolean value. True if the number is prime, false i
Chapter01/ch01_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe01/task/Calculator.java:35
← previousnext →101–200 of 896, ranked by callers