Şöyle yaparız
//Limits through Semaphore the number of threads that can execute a method or all//methods concurrently.@ApplicationScopedpublic class CDIBean {@MaxConcurrency(2)public void maxTwoThreadsMethod(){};@MaxConcurrency(10)public void maxUseofAPI(){}}
Hiç yorum yok:
Yorum Gönder