Examples of deleteMessage()


Examples of com.amazonaws.services.sqs.AmazonSQS.deleteMessage()

            System.out.println();

            // Delete a message
            System.out.println("Deleting a message.\n");
            String messageRecieptHandle = messages.get(0).getReceiptHandle();
            sqs.deleteMessage(new DeleteMessageRequest(myQueueUrl, messageRecieptHandle));

            // Delete a queue
            System.out.println("Deleting the test queue.\n");
            sqs.deleteQueue(new DeleteQueueRequest(myQueueUrl));
        } catch (AmazonServiceException ase) {
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient.deleteMessage()

            System.out.println();

            // Delete a message
            System.out.println("Deleting a message.\n");
            String messageRecieptHandle = messages.get(0).getReceiptHandle();
            sqs.deleteMessage(new DeleteMessageRequest(myQueueUrl, messageRecieptHandle));

            // Delete a queue
            System.out.println("Deleting the test queue.\n");
            sqs.deleteQueue(new DeleteQueueRequest(myQueueUrl));
        } catch (AmazonServiceException ase) {
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient.deleteMessage()

            httpGet(subscriptionUrl);
           
            DeleteMessageRequest deleteMessageRequest = new DeleteMessageRequest();
            deleteMessageRequest.setReceiptHandle(messages.get(0).getReceiptHandle());
            deleteMessageRequest.setQueueUrl(queueUrl);
            sqs.deleteMessage(deleteMessageRequest);
       
        } else {
          throw new Exception("no confirmation message found");
        }
      }
View Full Code Here

Examples of com.amazonaws.services.sqs.AmazonSQSClient.deleteMessage()

        }
       
          DeleteMessageRequest deleteMessageRequest = new DeleteMessageRequest();
          deleteMessageRequest.setReceiptHandle(messages.get(0).getReceiptHandle());
          deleteMessageRequest.setQueueUrl(queueUrl);
          sqs.deleteMessage(deleteMessageRequest);

      } else {
        throw new Exception("no messages found");
      }
     
View Full Code Here

Examples of com.netflix.astyanax.recipes.queue.ShardedDistributedMessageQueue.deleteMessage()

            final Message m3rm = scheduler.peekMessage(messageId3);
            Assert.assertNotNull(m3rm);
            LOG.info(m3rm.toString());
            Assert.assertEquals(1, scheduler.getMessageCount());

            scheduler.deleteMessage(messageId3);

            Assert.assertEquals(0, scheduler.getMessageCount());
        }

//        {
View Full Code Here

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

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

                    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

Examples of ee.widespace.forum.data.ForumData.deleteMessage()

       
        Connection conn  = getConnection();
        try {
          ForumData data = new ForumData(conn);
  System.out.println("delete message ... prepered");
          data.deleteMessage( messageID );
  System.out.println("delete message ... ok");
          conn.commit();
  System.out.println("delete message ...commit....ok");
        } finally {
          conn.close();
View Full Code Here

Examples of net.rim.blackberry.api.mail.Folder.deleteMessage()

            if( _message == null ) {
                throw new MessagingException( "Message item not found." );
            }

            Folder folder = _message.getFolder();
            folder.deleteMessage( _message );
            _message = null;

            return UNDEFINED;
        }
    }
View Full Code Here

Examples of net.rim.blackberry.api.mail.Folder.deleteMessage()

       
        Message todelete = Store.getMessage(messageID);
       
        if (todelete != null) {
            folder = todelete.getFolder();
            folder.deleteMessage(todelete);
            deleteData(new Integer(todelete.getMessageId()).toString(),Constants.ITEMSKEY);
        } else {
            try {
                Store store = Session.getDefaultInstance().getStore();
                Folder[] folders = store.list();
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.