public interface ExecutionQueueRepository
List<ExecutionMessage> poll(String workerId, int maxSize, long workerPollingMemory, ExecStatus... statuses)
List<ExecutionMessage> pollRecovery(String workerId, int maxSize, ExecStatus... statuses)
List<ExecutionMessage> pollMessagesWithoutAck(int maxSize, long minVersionAllowed)
Integer countMessagesWithoutAckForWorker(int maxSize, long minVersionAllowed, String workerUuid)
long generateExecStateId()
void insertExecutionStates(List<ExecutionMessage> stateMessages)
void insertExecutionQueue(List<ExecutionMessage> messages, long version)
List<ExecutionMessage> findByStatuses(int maxSize, ExecStatus... statuses)
List<String> getBusyWorkers(ExecStatus... statuses)
void insertNotActiveExecutionsQueues(List<ExecutionMessage> notActiveMessages)
StartNewBranchPayload getFirstPendingBranch(long executionId)
StartNewBranchPayload getFirstPendingBranchBySplitId(String splitId)
void activatePendingExecutionStateForAnExecution(long executionId)
void deletePendingExecutionState(long executionStatesId)
List<ExecutionMessage> findOldMessages(long timestamp)
Copyright © 2023. All rights reserved.