Skip to content

Commit

Permalink
Add Cerial First Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
GedMarc committed May 10, 2024
1 parent 6b35f5c commit fb582ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/guicedee/guicedinjection/JobService.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.guicedee.guicedinjection;

import com.google.inject.Singleton;
import com.guicedee.guicedinjection.interfaces.*;
import com.guicedee.guicedinjection.interfaces.IGuicePreDestroy;
import com.guicedee.guicedinjection.interfaces.IJobService;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.java.Log;
Expand Down Expand Up @@ -326,9 +327,7 @@ public ScheduledExecutorService addPollingJob(String jobPoolName, Runnable threa
.isShutdown())
{
registerJobPollingPool(jobPoolName,
Executors.newScheduledThreadPool(Runtime
.getRuntime()
.availableProcessors()));
Executors.newSingleThreadScheduledExecutor());
}
ScheduledExecutorService service = pollingMap.get(jobPoolName);
service.scheduleAtFixedRate(thread, initialDelay, delay, unit);
Expand Down

0 comments on commit fb582ce

Please sign in to comment.