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

Methodrun
Main method of the class. See the comments inside to a better description of it
Chapter10/ch10_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe01/task/FileSearch.java:51
Methodrun
Main method of the producer. Generates 10000 of Strings and stores them in the buffer
Chapter10/ch10_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe03/task/Producer.java:36
Methodrun
Main method of the consumer. It takes 10000 Strings from the buffer
Chapter10/ch10_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe03/task/Consumer.java:36
Methodrun
Main method of the task
Chapter10/ch10_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe04/task/Task.java:15
Methodrun
Main method of the task. Acquire the semaphore, sleep the thread for two seconds and release the semaphore
Chapter10/ch10_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe05/semaphore/TaskSemaphore.java:29
Methodrun
Main method of the class. Generate 10 random numbers and write them in the console
Chapter10/ch10_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe06/task/TaskLocalRandom.java:15
Methodrun
Main method of the task. Executes three phases. In each phase, sleeps the thread the number of seconds specified by the time attribute.
Chapter09/ch09_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe02/phaser/Task.java:37
Methodrun
()
Chapter09/ch09_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe11/task/Task.java:7
Methodrun
Main method of the task
Chapter09/ch09_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe06/task/Task.java:21
Methodrun
Main method of the task. Takes the control of the Lock, sleeps for 500 milliseconds and free the lock. Repeats this behavior five times
Chapter09/ch09_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe01/lock/Task.java:31
Methodrun
Main method of the task. Sleep the thread the number of millisecons specified by the milliseconds attribute.
Chapter09/ch09_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe03/executor/Task.java:28
Methodrun
()
Chapter02/ch02_recipe01_problem/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/Sensor.java:13
Methodrun
Core method of the producer. While are pending lines in the simulated file, reads one and try to store it in the buffer.
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Producer.java:39
Methodrun
Core method of the consumer. While there are pending lines in the buffer, try to read one.
Chapter02/ch02_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe05/task/Consumer.java:29
Methodrun
()
Chapter02/ch02_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe06/task/OptimisticReader.java:16
Methodrun
()
Chapter02/ch02_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe06/task/Reader.java:16
Methodrun
()
Chapter02/ch02_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe06/task/Writer.java:16
Methodrun
Core method of the producer. Generates 100 events.
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/Producer.java:25
Methodrun
Core method for the consumer. Consume 100 events
Chapter02/ch02_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe02/task/Consumer.java:25
Methodrun
Core method of the Job. Sends the document to the print queue and waits for its finalization
Chapter02/ch02_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe03/task/Job.java:26
Methodrun
()
Chapter02/ch02_recipe01_solution/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe01/parking/Sensor.java:13
Methodrun
Core method of the reader. Consults the two prices and prints them to the console
Chapter02/ch02_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe04/task/Reader.java:28
Methodrun
Core method of the writer. Establish the prices
Chapter02/ch02_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter02/recipe04/task/Writer.java:27
Methodrun
()
Chapter11/app_recipe07/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe07/task/Task.java:7
Methodrun
()
Chapter11/app_recipe03/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe03/task/TaskAtomic.java:13
Methodrun
()
Chapter11/app_recipe03/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe03/task/TaskLock.java:15
Methodrun
()
Chapter11/app_recipe04/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe04/task/Task2.java:15
Methodrun
()
Chapter11/app_recipe04/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe04/task/Task1.java:15
Methodrun
()
Chapter11/app_recipe08/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe08/task/Task.java:13
Methodrun
()
Chapter11/app_recipe05/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe05/task/Task.java:5
Methodrun
()
Chapter11/app_recipe09/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe09/task/Task.java:18
Methodrun
Main method of the task. It sleeps the thread for two seconds
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyTask.java:15
Methodrun
Main method of the thread. Stores the start and finish date of the thread and calls the run() method of its parent class
Chapter08/ch08_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe04/task/MyThread.java:42
Methodrun
Main method of the task. Writes a message, sleeps the current thread for two seconds and writes another message
Chapter08/ch08_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe05/task/Task.java:15
Methodrun
Method that executes the task. If it's a periodic task, it updates the start date of the task and store in the queue of the executor the task to be ex
Chapter08/ch08_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe05/task/MyScheduledTask.java:100
Methodrun
Main method of the Thread. Sleeps the thread during two seconds
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/task/MyTask.java:15
Methodrun
Main method of the thread. Stores the start date and the finish date and calls the run() method of the parent class
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/task/MyThread.java:39
Methodrun
Main method of the sensor. Simulates the traffic in the door of the parking
Chapter08/ch08_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe10/task/Sensor1.java:26
Methodrun
Main method of the sensor. Simulates the traffic in the door of the parking
Chapter08/ch08_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe10/task/Sensor2.java:25
Methodrun
Main method of the task. It gets the lock, sleep the thread for two seconds and then release the lock.
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/task/Task.java:35
Methodrun
Main method of the producer. Store 100 events in the buffer with incremental priority
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Producer.java:27
Methodrun
Main method of the consumer. It takes 1002 events from the buffer
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/Consumer.java:26
Methodrun
()
Chapter08/ch08_recipe12/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe12/stream/PublisherTask.java:15
Methodrun
Main method of the task. It only writes a message to the console. It will be overridden by the real tasks
Chapter08/ch08_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe02/task/MyPriorityTask.java:54
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/BasicPerson.java:28
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/BasicPerson.java:28
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/BasicPerson.java:28
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/BasicPerson.java:28
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/BasicPerson.java:28
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/BasicPerson.java:28
MethodsetAge
@param age the age to set
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/BasicPerson.java:28
MethodsetBirthDate
(Date birthDate)
Chapter11/app_recipe01/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe01/PersonMutable.java:30
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Counter.java:33
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Counter.java:33
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Counter.java:33
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Counter.java:33
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Counter.java:33
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Counter.java:33
MethodsetCounter
@param counter the counter to set
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Counter.java:33
MethodsetFirstName
(String firstName)
Chapter11/app_recipe01/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe01/PersonMutable.java:14
MethodsetLastName
(String lastName)
Chapter11/app_recipe01/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe01/PersonMutable.java:22
MethodsetName
@param name the name to set
Chapter06/ch06_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe03/util/BasicPerson.java:16
MethodsetName
@param name the name to set
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/BasicPerson.java:16
MethodsetName
@param name the name to set
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/BasicPerson.java:16
MethodsetName
@param name the name to set
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/BasicPerson.java:16
MethodsetName
@param name the name to set
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/BasicPerson.java:16
MethodsetName
@param name the name to set
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/BasicPerson.java:16
MethodsetName
@param name the name to set
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/BasicPerson.java:16
MethodsetRawResult
Method that establish the result of the task. In this case, as the task doesn't return a result, this method is empty
Chapter08/ch08_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter08/reciper07/task/MyWorkerTask.java:44
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Counter.java:21
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Counter.java:21
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Counter.java:21
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Counter.java:21
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Counter.java:21
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Counter.java:21
MethodsetValue
@param value the value to set
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Counter.java:21
MethodshutdownNow
This method is called to finish the execution of the Executor immediately. We write statistics about the tasks executed in it
Chapter08/ch08_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe01/executor/MyExecutor.java:58
Methodthread1
This is the first consumer. It only consumes a String @throws InterruptedException
Chapter09/ch09_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe10/test/ProducerConsumerTest.java:34
Methodthread2
This is the second consumer. It waits for the first tick that happens when the first consumer arrives. Then, consumes a String @throws InterruptedExce
Chapter09/ch09_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe10/test/ProducerConsumerTest.java:44
Methodthread3
This is the Producer. It waits for the first tick that happens when the first consumer arrives. Then, waits for the second tick that happens when the
Chapter09/ch09_recipe10/src/com/packtpub/java9/concurrency/cookbook/chapter09/recipe10/test/ProducerConsumerTest.java:56
MethodtoString
()
Chapter06/ch06_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe02/util/Person.java:109
MethodtoString
()
Chapter06/ch06_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe08/util/Person.java:109
MethodtoString
()
Chapter06/ch06_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe07/util/Person.java:109
MethodtoString
()
Chapter06/ch06_recipe01/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe01/util/Person.java:109
MethodtoString
()
Chapter06/ch06_recipe05/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe05/util/Person.java:109
MethodtoString
()
Chapter06/ch06_recipe04/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe04/util/Person.java:113
MethodtoString
()
Chapter06/ch06_recipe06/src/com/packtpub/java9/concurrency/cookbook/chapter06/recipe06/util/Person.java:109
MethodtoString
()
Chapter11/app_recipe12/src/com/packtpub/java9/concurrency/cookbook/appendix/recipe12/utils/Person.java:108
MethodtoString
Method that writes information about the thread
Chapter08/ch08_recipe03/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe03/task/MyThread.java:72
MethodtryAcquire
This method try to acquire the control of the lock @return true if the thread acquires the lock, false otherwise
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/task/MyAbstractQueuedSynchronizer.java:37
MethodtryRelease
This method try to free the control of the lock @return true if the thread releases the lock, false otherwise
Chapter08/ch08_recipe08/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe08/task/MyAbstractQueuedSynchronizer.java:46
MethodtrySplit
()
Chapter08/ch08_recipe11/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe11/spliterator/MySpliterator.java:54
MethodtryTransfer
This method tries to transfer an element to a consumer. If there is a consumer waiting, we puts the element in the queue and return the true value. El
Chapter08/ch08_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter08/recipe09/task/MyPriorityTransferQueue.java:53
MethoduncaughtException
Method for process the uncaught exceptions
Chapter01/ch01_recipe09/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe09/group/MyThreadGroup.java:22
MethoduncaughtException
Main method of the class. It process the uncaught excpetions throwed in a Thread @param t The Thead than throws the Exception @param e
Chapter01/ch01_recipe07/src/com/packtpub/java9/concurrency/cookbook/chapter01/recipe07/handler/ExceptionHandler.java:20
MethoduncaughtException
This method process the uncaught exceptions thrown in a worker thread. @param t The thread that throws the exception @param e The exception it was thr
Chapter10/ch10_recipe02/src/com/packtpub/java9/concurrency/cookbook/chapter10/recipe02/task/Handler.java:19
← previous801–896 of 896, ranked by callers