Examples of SQS


Examples of com.softwaremill.common.sqs.SQS

    private SQS sqs;

    /* That's just for legacy code, in case SQS doesn't get injected */
    protected SQS getSQS() {
        if (sqs ==null) {
            sqs = new SQS();
        }
        return sqs;
    }
View Full Code Here

Examples of com.softwaremill.common.sqs.SQS

     * Asynchronously executes the given task.
     * @param task Task to execute.
     */
    @SuppressWarnings("UnusedDeclaration")
    public static void scheduleTask(OneTimeTask<?> task) {
        scheduleTask(task, new SQS().getQueueByName(TASK_SQS_QUEUE));
    }
View Full Code Here

Examples of com.softwaremill.common.sqs.SQS

        String to = "sqs-test@example.org";
        String subject = "TEST: testEmailDelivery()";
        String message = "Simple message from SQS email test";

        SQSTaskTimerBean.scheduleTask(new SendEmailTask(new EmailDescription(to, message, subject)),
                new SQS("http://localhost:" + ELASTIMQ_PORT, "1234", "1234").getQueueByName(TEST_QUEUE));
        sendEmail();

        // Then
        assertThat(emailServer.getReceivedEmailSize()).isEqualTo(1);
View Full Code Here

Examples of com.softwaremill.common.sqs.SQS

    private class SQSTaskTimerBeanMock extends SQSTaskTimerBean {

        @Override
        protected SQS getSQS() {
            return new SQS("http://localhost:" + ELASTIMQ_PORT, "1234", "1234");
        }
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.