Posts

Showing posts from November 23, 2018

Asynchronous process to consume items from queue and send them to external API

Image
up vote 0 down vote favorite I have a requirement: taking items from a queue and send them to an external API. And keep doing that process without waiting for the response from external API. For now, I let the class implements Runnable and in the run method I dequeue the items and send them. Then I use Excutor.newCachedThreadPool() to handle that process. I am not sure it is right or not. Any suggestion or correction? java multithreading asynchronous queue share | improve this question asked Nov 9 at 21:07 HenlenLee 69 7 Also, have a question about which one is better to implement this, Runnable or Callable? – HenlenLee Nov 9 at 21:12 Callable can return Object and can throw exception whereas Runnable cant so it basically depends on your requirement on what to use. – Rakesh Nov 9 at 21:58 Using Executor makes sense when you have many small tasks. But you have a single long task, so it is logical to run it in a

Kyknos (Sohn des Poseidon)

Image
Kyknos (rechts) nach seiner Verwandlung Kyknos (griechisch  Κύκνος , Schwan , lateinisch Cygnus) ist in der griechischen Mythologie der Sohn des Poseidon und der Kalyke. Dieser Artikel oder Abschnitt bedarf einer Überarbeitung : siehe Diskussionsbeiträge zur Etymologie! Es gibt auch Meinungen, dass sich Kyknos vom anatolischen bzw. luwischen Namen Kukunni ableiten lasse; dies kann aber sinnvollerweise erst ergänzt werden, wenn die (antiken) griechischen Erklärungen vervollständigt und relativiert werden. Hilf mit, ihn zu verbessern, und entferne anschließend diese Markierung. Er wurde von Fischern Kyknos genannt, weil sie das ausgesetzte Kind am Strand von Schwänen umkreist gefunden hatten. Kyknos wurde König von Kolonai in der Troas. Betört durch die Verleumdungen seiner zweiten Gemahlin Philonome und eines Flötenspielers, ließ er seine beiden Kinder seiner ersten Gemahlin Prokleia, Tenes und Hemithea, in einem Kasten ins Meer werfen; sie landeten auf Tenedos, wo Tenes König wurde. A

Minato joins DBS Universe Battle

Image
Wiki Characters Creators Teams Volumes Issues Publishers Locations Concepts Things Story Arcs Movies Series Episodes New Comics Forums Gen. Discussion Bug Reporting Delete/Combine Pages Artist Show-Off Off-Topic Contests Battles Fan-Fic RPG Comic Book Preview API Developers Editing & Tools Podcast Quests Community Top Users Activity Feed User Lists Community Promos Archives News Reviews Videos Podcasts Previews Login / Sign Up All Wiki     Arcs     Characters     Companies     Concepts     Issues     Locations     Movies     People     Teams     Things     Volumes     Series     Episodes Editorial     Videos     Articles     Reviews     Features Community     Users Comic Vine Forums Battles Minato joins DBS Universe Battle NoHatesWin Follow Forum Posts: 5 Wiki Points: 0 Followed by: 0 Reviews: 0 Lists: 0 #1 Posted by NoHatesWin (5 posts) - 1 year, 3 months ago - Show Bio Minato