How to split the list and execute parallelly using java -
this question has answer here:
- common util break list batch [closed] 7 answers
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
Post a Comment