org.dasein.cloud.aws.platform
Class SQS
java.lang.Object
org.dasein.cloud.aws.platform.SQS
public class SQS
- extends Object
|
Method Summary |
static org.dasein.cloud.identity.ServiceAction[] |
asSQSServiceAction(String action)
|
String |
createQueue(String name,
String description,
int timeoutInSeconds)
|
void |
getQueue(String queueId)
|
Map<String,String> |
getQueueAttributes(String queueId,
String attribute)
|
void |
listQueues()
|
String[] |
mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
|
void |
receiveMessages(String queueId,
int maxMessages,
int timeoutInSeconds)
|
void |
removeMessage(String messageId)
|
void |
removeQueue(String queueId)
|
String |
sendMessage(String queueId,
String message)
|
void |
setQueueAttribute(String queueId,
String name,
String value)
|
void |
setTimeout(String messageId,
int timeoutInMinutes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SET_QUEUE_ATTRIBUTES
public static final String SET_QUEUE_ATTRIBUTES
- See Also:
- Constant Field Values
asSQSServiceAction
@Nonnull
public static org.dasein.cloud.identity.ServiceAction[] asSQSServiceAction(@Nonnull
String action)
createQueue
public String createQueue(String name,
String description,
int timeoutInSeconds)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getQueue
public void getQueue(String queueId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getQueueAttributes
public Map<String,String> getQueueAttributes(String queueId,
String attribute)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listQueues
public void listQueues()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
org.dasein.cloud.identity.ServiceAction action)
receiveMessages
public void receiveMessages(String queueId,
int maxMessages,
int timeoutInSeconds)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
removeMessage
public void removeMessage(String messageId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
removeQueue
public void removeQueue(String queueId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
sendMessage
public String sendMessage(String queueId,
String message)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
setQueueAttribute
public void setQueueAttribute(String queueId,
String name,
String value)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
setTimeout
public void setTimeout(String messageId,
int timeoutInMinutes)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
Copyright © 2012 enStratus Networks LLC. All Rights Reserved.