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

com.windowsazure.samples.queue.QueueWriter Maven / Gradle / Ivy

Go to download

jpa4azure, implements a subset of the JPA specification using Azure Storage for pesisting beans. see http://jpa4azure.codeplex.com for more information.

There is a newer version: 0.7
Show newest version
package com.windowsazure.samples.queue;

import com.windowsazure.samples.MetadataCollection;

public interface QueueWriter {
	public QueueOperationResponse createQueue(String queueName);
	public QueueOperationResponse createQueue(String queueName, MetadataCollection metadata);
	public QueueOperationResponse deleteQueue(String queueName);
	public QueueOperationResponse setQueueMetadata(String queueName, MetadataCollection metadata);
	
	// timeToLiveInterval: Optional. Specifies the time-to-live interval for the message, in seconds.
	// The maximum time-to-live allowed is 7 days. If this parameter is null, the default time-to-live is 7 days.
	public QueueOperationResponse putMessage(String queueName, String messageText, Integer timeToLiveInterval);
	
	public QueueOperationResponse deleteMessage(String queueName, String messageId, String popReceipt);
	public QueueOperationResponse clearMessages(String queueName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy