Package com.microsoft.windowsazure.services.queue.models

Examples of com.microsoft.windowsazure.services.queue.models.ListMessagesOptions


    }

    @Override
    public ListMessagesResult listMessages(String queue)
            throws ServiceException {
        return listMessages(queue, new ListMessagesOptions());
    }
View Full Code Here


        service.createMessage(TEST_QUEUE_FOR_MESSAGES_3, "message2");
        service.createMessage(TEST_QUEUE_FOR_MESSAGES_3, "message3");
        service.createMessage(TEST_QUEUE_FOR_MESSAGES_3, "message4");
        ListMessagesResult result = service.listMessages(
                TEST_QUEUE_FOR_MESSAGES_3,
                new ListMessagesOptions().setNumberOfMessages(4)
                        .setVisibilityTimeoutInSeconds(20));

        // Assert
        assertNotNull(result);
        assertEquals(4, result.getQueueMessages().size());
View Full Code Here

        service.deleteMessage(TEST_QUEUE_FOR_MESSAGES_7, result
                .getQueueMessages().get(0).getMessageId(), result
                .getQueueMessages().get(0).getPopReceipt());
        ListMessagesResult result2 = service.listMessages(
                TEST_QUEUE_FOR_MESSAGES_7,
                new ListMessagesOptions().setNumberOfMessages(32));

        // Assert
        assertNotNull(result2);
        assertEquals(3, result2.getQueueMessages().size());
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.queue.models.ListMessagesOptions

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.