Package com.softwaremill.common.task

Examples of com.softwaremill.common.task.OneTimeTask


        if (sqsAnswer.isPresent()) {
            Object message = sqsAnswer.get().getMessage();

            if (message instanceof OneTimeTask) {
                LOG.debug("Deserialized message: " + message);
                OneTimeTask task = (OneTimeTask) message;
                try {
                    if (task.getTaskTimeout() != null) {
                        queue.setMessageVisibilityTimeout(sqsAnswer.get(), task.getTaskTimeout());
                    }

                    new ExecuteWithRequestContext(task).execute();

                    queue.deleteMessage(sqsAnswer.get());
View Full Code Here

TOP

Related Classes of com.softwaremill.common.task.OneTimeTask

Copyright © 2018 www.massapicom. 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.