Re: [Dev] [AF] Call a same method simultaneously like BPS

2015-09-24 Thread Ruwan Abeykoon
Hi Lahiru, I would go for option 1 (Concurrent Framework) as it gives much more control to the programmer e.g. 1. Thread pooling, how many threads can be active etc, 2. Better blocking mechanism than Trhead.join(), which blocks the caller thread. We can make things totally asynchronous by creating

Re: [Dev] [AF] Call a same method simultaneously like BPS

2015-09-24 Thread Samith Dassanayake
Hi Lahiru, Working with the Thread class can be very tedious and error-prone. The executor framework has protection against crashed runnables and automatically re-create worker threads . On the other hand, as Ruwan has mentioned, it gives much more control to the programmer. therefore going with

[Dev] [AF] Call a same method simultaneously like BPS

2015-09-23 Thread Lahiru Manohara
Hi All, The BPS we can define to call a methods simultaneously within the workflow. [image: Inline image 1] Same thing can be done using the java threads. There are two implementation available to tackle this problem. 1). Using java Executor interface[1] 2). Using runnable interface[2] [1]