Cornerstone Components - ThreadsExample
RuntimeTo execute this demonstration please make sure that you copy the cornerstone-threads-* jar files from your Maven repository to you Merlin repository. $ cd avalon-cornerstone\threads\tutorial $ merlin target\cornerstone-threads-tutorial-1.0.jar [INFO ] (thread-tutorial.test): aquiring cornerstone threads service [INFO ] (thread-tutorial.test): initialization [INFO ] (thread-tutorial.test.counter): count: 10 [INFO ] (thread-tutorial.test.counter): count: 9 [INFO ] (thread-tutorial.test.counter): count: 8 [INFO ] (thread-tutorial.test.counter): count: 7 Interrupting the container (using ^C) will trigger component disposal which in turn will trigger early termination of the thread established using the cornerstone thread manager. [INFO ] (thread-tutorial.test): disposal [INFO ] (thread-tutorial.test): disposal invoked while child thread active [INFO ] (thread-tutorial.test.counter): I've been interrupted. [INFO ] (thread-tutorial.test.counter): Time to die. [INFO ] (thread-tutorial.test): disposal complete |