Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
42 views

Completable Future with Executor for handling Exceptions only

There is a list of objects List<Foo> fooDetails, which I will use to create Bar request corresponding to each element of fooDetails from database and then do a rest template call. public void ...
Anurator's user avatar
  • 115
0 votes
3 answers
2k views

Limit on number of threads in Thread pool in Java executors framework?

I have been working on Spring Boot application where I have limited memory for JVM upto 2 GB. At controller, user sends some request which is handled by my Executors thread pool. It is a light weight ...
Thinker's user avatar
  • 6,892
2 votes
0 answers
675 views

How to check currently running thread under given Task Executor with Spring @Async

I am not creating bean explicitly. I am using @EnableAsync and spring properties. spring.task.execution.pool.core-size=10 spring.task.execution.pool.max-size=20 spring.task.execution.pool.queue-...
G10's user avatar
  • 161
0 votes
1 answer
2k views

Spring boot JPA repository passed to another thread not working

I have an autowired jpa repository object working. However, I need to use it to add rows into the database from multiple threads. Though, after passing it to another thread, it fails. Code structure @...
Raj Malhotra's user avatar
0 votes
0 answers
47 views

JBOSS 7,2 with open JDK and having spring boot war is shutdown when JVM restart

Having Jboss 7.2 and open JDK 1.8 with spring boot(spring boot and ehcache, Executor) , when server is active able to deploy the spring boot wars successfully and application is in Active state, ...
mahesh kumar's user avatar
3 votes
1 answer
892 views

Terminate all threads when exception occurs for one in an asynchronous method

Is it possible to immediately interrupt all other threads execution, if an exception is encountered in any one of the thread in an asynchronous method? The method returns a completableFuture Object. ...
User's user avatar
  • 31
0 votes
1 answer
578 views

Suggestion : Making parallel call from my service to another micro service

I have a requirement as follows Make a DB call based on certain criteria and fetch list of result For each record present in list, make a GET api call to a microservice Consolidate all result from ...
Ashishkumar Singh's user avatar
0 votes
0 answers
146 views

In spring boot,how to transfer requests with different url prefix to different executors in tomcat by the prefix of url?

So far,I know how to add one customized executor in tomcat. however,I have no idea assigning different executors for different request by url prefix. Hope your help! the following is code example ...
Bell's user avatar
  • 1
0 votes
0 answers
766 views

Nested Executors using FixedThreadPool

I'm trying to implement a ExecutorService nested within another Executor. The parent executor is a FixedThreadPool of size 5, while the nested Executor is of size 10. While running it, i see the ...
Bch Charan's user avatar
0 votes
0 answers
796 views

Use executors for bulk update using spring boot

Use executors for bulk update. Try to persist 10-20 records in a database using executors. using spring boot jpa hibernate.Pleask help me how to proceed
Harshita Taparia's user avatar
0 votes
0 answers
301 views

Hazelcast. register IExecutorService

I am reading Hazelcast documentation (http://docs.hazelcast.org/docs/latest-development/manual/html/Distributed_Computing/Executor_Service/Implementing_a_Runnable_Task.html) To manage Executor in ...
Juneyoung Oh's user avatar
  • 7,632