public QueueEntry addEntry( ProcessingQueue queue, String targetClass, String targetMethod, String arguments) { QueueEntry entry = QueueEntry.newQueueEntry(queue, targetClass, targetMethod, arguments); entryDao.save(entry); return entry; }
public QueueEntry addEntry( String queueName, String targetClass, String targetMethod, String arguments) { ProcessingQueue queue = getOrCreateQueue(queueName); QueueEntry entry = QueueEntry.newQueueEntry(queue, targetClass, targetMethod, arguments); entryDao.save(entry); return entry; }
public void updateEntry(QueueEntry entry) { Boolean delete = entry.getDeleteWhenExecuted(); if (delete) { logger.info("deleting entry:" + entry); entryDao.delete(entry); } else { entryDao.save(entry); logger.info("update entry:" + entry); } }