All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.windowsazure.services.queue.QueueContract Maven / Gradle / Ivy

There is a newer version: 0.4.6
Show newest version
/**
 * Copyright 2011 Microsoft Corporation
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package com.microsoft.windowsazure.services.queue;

import java.util.HashMap;

import com.microsoft.windowsazure.services.core.FilterableService;
import com.microsoft.windowsazure.services.core.ServiceException;
import com.microsoft.windowsazure.services.queue.models.CreateMessageOptions;
import com.microsoft.windowsazure.services.queue.models.CreateQueueOptions;
import com.microsoft.windowsazure.services.queue.models.GetQueueMetadataResult;
import com.microsoft.windowsazure.services.queue.models.GetServicePropertiesResult;
import com.microsoft.windowsazure.services.queue.models.ListMessagesOptions;
import com.microsoft.windowsazure.services.queue.models.ListMessagesResult;
import com.microsoft.windowsazure.services.queue.models.ListQueuesOptions;
import com.microsoft.windowsazure.services.queue.models.ListQueuesResult;
import com.microsoft.windowsazure.services.queue.models.PeekMessagesOptions;
import com.microsoft.windowsazure.services.queue.models.PeekMessagesResult;
import com.microsoft.windowsazure.services.queue.models.QueueServiceOptions;
import com.microsoft.windowsazure.services.queue.models.ServiceProperties;
import com.microsoft.windowsazure.services.queue.models.UpdateMessageResult;

public interface QueueContract extends FilterableService {
    GetServicePropertiesResult getServiceProperties() throws ServiceException;

    GetServicePropertiesResult getServiceProperties(QueueServiceOptions options) throws ServiceException;

    void setServiceProperties(ServiceProperties serviceProperties) throws ServiceException;

    void setServiceProperties(ServiceProperties serviceProperties, QueueServiceOptions options) throws ServiceException;

    void createQueue(String queue) throws ServiceException;

    void createQueue(String queue, CreateQueueOptions options) throws ServiceException;

    void deleteQueue(String queue) throws ServiceException;

    void deleteQueue(String queue, QueueServiceOptions options) throws ServiceException;

    ListQueuesResult listQueues() throws ServiceException;

    ListQueuesResult listQueues(ListQueuesOptions options) throws ServiceException;

    GetQueueMetadataResult getQueueMetadata(String queue) throws ServiceException;

    GetQueueMetadataResult getQueueMetadata(String queue, QueueServiceOptions options) throws ServiceException;

    void setQueueMetadata(String queue, HashMap metadata) throws ServiceException;

    void setQueueMetadata(String queue, HashMap metadata, QueueServiceOptions options)
            throws ServiceException;

    void createMessage(String queue, String messageText) throws ServiceException;

    void createMessage(String queue, String messageText, CreateMessageOptions options) throws ServiceException;

    UpdateMessageResult updateMessage(String queue, String messageId, String popReceipt, String messageText,
            int visibilityTimeoutInSeconds) throws ServiceException;

    UpdateMessageResult updateMessage(String queue, String messageId, String popReceipt, String messageText,
            int visibilityTimeoutInSeconds, QueueServiceOptions options) throws ServiceException;

    void deleteMessage(String queue, String messageId, String popReceipt) throws ServiceException;

    void deleteMessage(String queue, String messageId, String popReceipt, QueueServiceOptions options)
            throws ServiceException;

    ListMessagesResult listMessages(String queue) throws ServiceException;

    ListMessagesResult listMessages(String queue, ListMessagesOptions options) throws ServiceException;

    PeekMessagesResult peekMessages(String queue) throws ServiceException;

    PeekMessagesResult peekMessages(String queue, PeekMessagesOptions options) throws ServiceException;

    void clearMessages(String queue) throws ServiceException;

    void clearMessages(String queue, QueueServiceOptions options) throws ServiceException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy