How to split the list and execute parallelly using java -


this question has answer here:

how split list , execute parallelly.
scenario--
getting 1000+ vehicles using below list webservices.

list<vehicle> vehiclelist = vehicleservices.getvehicles(); 

i want split 100 vehicles each list , execute list parallelly.
thanks

you can use parallelstream. check the doc know more abour java parallelism


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -