parent
ccddd98cd6
commit
fe3cc5f6f5
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import ru.spcex.platform.utils.log.ExceptionUtils;
|
|||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
|
|
@ -26,6 +27,8 @@ public class PlannerQueueConfig {
|
|||
|
||||
public static void addToPlannerQueue(@NotNull TaskManager.Process process, @NotNull PlannerAllToday plannerAllToday) {
|
||||
try {
|
||||
Objects.requireNonNull(process);
|
||||
Objects.requireNonNull(plannerAllToday);
|
||||
plannerQueue.put(Map.entry(process, plannerAllToday));
|
||||
} catch (InterruptedException e) {
|
||||
log.warn("InterruptedException plannerQueue.put {}", ExceptionUtils.getStackTrace(e));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue