I'm trying to make a ScheduledExecutorService where only one task is active at a time and only once a task has finished, the next task will begin its ...
I'm trying to make a ScheduledExecutorService where only one task is active at a time and only once a task has finished, the next task will begin its ...
The following code block does not work for me (alert is not being triggered): While this code block does work: I don't understand the difference ...
Good day everyone. I have a problem with my java app deployed in AWS ECS Fargate instance. With our configuration the fargate instance is running all ...
As noted in the Spring docs for EnableScheduling, when a TaskScheduler pool is not setup/available/resolvable, "a local single-threaded default schedu ...
I am trying to implement a polling functionality which does this: I wrote below code: But it's not correct implementation as the process still r ...
In our Android Application - during app start we schedule threads to run every 8 hours for transmitting files. I have been observing inconsistent tran ...
I need some assistance on how to implement the SingleThreadScheduledExecutor to run the job every 15mins between 8 am to 10 am UK time and then every ...
As you can see, the commented out code returns what elector.get() returns, which is a Record. But instead of using Thread.sleep(delayTime), I'm tryi ...
I am trying to reset the timer so it can pull another value from my array. Does anyone know the solution? My error is saying: I am stuck and I know ...
I am trying to execute a single function foo on an interval, and MULTIPLE times per interval. The way I am currently doing it is by creating a servic ...
I have a function that is monitoring an SQS queue and tries to poll from it. I want to call this function on an interval with multiple threads (let's ...
I have a function foo() that I want to be invoked by multiple threads on an interval. example: want to execute foo() every 100ms with x number of thre ...
I need to monitor the property value has changed or not throughout the java program run, if its value has changed in need to do some necessary steps t ...
I am creating a pool of 10 threads Each thread runs for 3 seconds I set the startup period of each task to 0.5 seconds The question is, if the pool c ...
I have a Java project (Java 8) that should execute a task every 10ms. I use java ScheduledExecutorService to run the task: ScheduledExecutorService e ...
So I want the code to download, upload image to twitter, delete the file that was just downloaded. Every 30 minutes(to not spam twitter follower feed, ...
I'm still battling to understand how to work with the ScheduledExecutorService. I want to have a single ScheduledExecutorService/ScheduledThreadPoolEx ...
I have some problems understanding how exactly the ScheduledExecutorService/ScheduledThreadPoolExecutor works. I would like to have the following setu ...
ScheduledExecutorService not executing a submitted task with an initialDelay of 0 time units when using scheduleWithFixedDelay or scheduleAtFixedRate. ...
I have a list with a length of 100. and I am running it concurrently with threadpool. I can add the time delay inside the executing function, but I wo ...