Package com.softwaremill.common.sqs

Examples of com.softwaremill.common.sqs.Queue.deleteMessage()


                        queue.setMessageVisibilityTimeout(sqsAnswer.get(), task.getTaskTimeout());
                    }

                    new ExecuteWithRequestContext(task).execute();

                    queue.deleteMessage(sqsAnswer.get());
                } catch (RuntimeException e) {
                    LOG.warn("Something went wrong and the task has not been executed. Redelivery will occur.", e);
                }
            } else {
                LOG.warn("Trash in SQS: " + TASK_SQS_QUEUE);
View Full Code Here


                    LOG.warn("Something went wrong and the task has not been executed. Redelivery will occur.", e);
                }
            } else {
                LOG.warn("Trash in SQS: " + TASK_SQS_QUEUE);
                LOG.warn("Deserialized message: " + message + " -- removing message from queue!");
                queue.deleteMessage(sqsAnswer.get());
            }
        }

        LOG.debug("SQS task queue checked " + TASK_SQS_QUEUE);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.