Ejemplo n.º 1
0
  public QueueEntry addEntry(
      ProcessingQueue queue, String targetClass, String targetMethod, String arguments) {
    QueueEntry entry = QueueEntry.newQueueEntry(queue, targetClass, targetMethod, arguments);
    entryDao.save(entry);

    return entry;
  }
Ejemplo n.º 2
0
  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;
  }
Ejemplo n.º 3
0
 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);
   }
 }