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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -