|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.soyatec.windowsazure.proxy.AbstractProxyDelegate
org.soyatec.windowsazure.queue.QueueStorageClient
public abstract class QueueStorageClient
The entry point of the queue storage API
| Field Summary | |
|---|---|
static IRetryPolicy |
DefaultRetryPolicy
The default retry policy |
static org.soyatec.windowsazure.internal.util.TimeSpan |
DefaultTimeout
The default timeout |
| Method Summary | |
|---|---|
static QueueStorageClient |
create(boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
Factory method for QueueStorage |
static QueueStorageClient |
create(StorageAccountInfo accountInfo)
Factory method for QueueStorage |
static QueueStorageClient |
create(java.net.URI baseUri,
boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
Factory method for QueueStorage |
static IMessage |
createMessage()
Create a default message |
static IMessage |
createMessage(byte[] content)
Create a default message with content |
static IMessage |
createMessage(java.lang.String content)
Create a default message with content |
StorageAccountInfo |
getAccountInfo()
Returns the user account this queue lives in. |
java.lang.String |
getAccountName()
Return the name of the storage account. |
java.lang.String |
getBase64Key()
Returns authentication key used for signing requests. |
java.net.URI |
getBaseUri()
Returns the base URI of the blob storage service. |
SharedKeyCredentials |
getCredentials()
Returns credentials (name and key) of a storage account. |
abstract IQueue |
getQueue(java.lang.String queueName)
Get a reference to a Queue object with a specified name. |
IRetryPolicy |
getRetryPolicy()
Returns the retry policy used for retrying requests. |
org.soyatec.windowsazure.internal.util.TimeSpan |
getTimeout()
Returns the time out for each request to the storage service. |
abstract boolean |
isQueueExist(java.lang.String queueName)
Check if the Queue exists. |
boolean |
isUsePathStyleUris()
Returns whether to use/generate path-style or host-style URIs. |
java.util.List<java.lang.String> |
listQueues()
Lists the queues within the account. |
abstract java.util.List<java.lang.String> |
listQueues(java.lang.String prefix)
Lists the queues within the account that start with the given prefix. |
void |
setAccountInfo(StorageAccountInfo accountInfo)
Specify the user account this queue lives in. |
void |
setCredentials(SharedKeyCredentials credentials)
Specify the credentials (name and key) of a storage account. |
void |
setRetryPolicy(IRetryPolicy retryPolicy)
Specify the retry policy used for retrying requests. |
void |
setTimeout(org.soyatec.windowsazure.internal.util.TimeSpan timeout)
Specify the time out for each request to the storage service. |
void |
setUsePathStyleUris(boolean usePathStyleUris)
Specify whether to use/generate path-style or host-style URIs. |
| Methods inherited from class org.soyatec.windowsazure.proxy.AbstractProxyDelegate |
|---|
disableProxy, isProxyEnabled, setProxyConfiguration |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.soyatec.windowsazure.internal.util.TimeSpan DefaultTimeout
public static final IRetryPolicy DefaultRetryPolicy
| Method Detail |
|---|
public static QueueStorageClient create(java.net.URI baseUri,
boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
baseUri - The base URI of the blob storage serviceusePathStyleUris - If true, path-style URIs
(http://baseuri/accountname/containername/objectname) are
used. If false host-style URIs
(http://accountname.baseuri/containername/objectname) are
used, where baseuri is the URI of the service. If null, the
choice is made automatically: path-style URIs if host name
part of base URI is an IP addres, host-style otherwise.accountName - The name of the storage accountbase64Key - Authentication key used for signing requests
public abstract boolean isQueueExist(java.lang.String queueName)
throws StorageException
queueName - of the Table.
StorageException
public static QueueStorageClient create(boolean usePathStyleUris,
java.lang.String accountName,
java.lang.String base64Key)
usePathStyleUris - If true, path-style URIs
(http://baseuri/accountname/containername/objectname) are
used. If false host-style URIs
(http://accountname.baseuri/containername/objectname) are
used, where baseuri is the URI of the service. If null, the
choice is made automatically: path-style URIs if host name
part of base URI is an IP addres, host-style otherwise.accountName - The name of the storage accountbase64Key - Authentication key used for signing requests
public static QueueStorageClient create(StorageAccountInfo accountInfo)
accountInfo - Account information
public static IMessage createMessage()
public static IMessage createMessage(java.lang.String content)
content -
public static IMessage createMessage(byte[] content)
content -
public abstract IQueue getQueue(java.lang.String queueName)
throws StorageException
queueName - The name of the queue
StorageException
public java.util.List<java.lang.String> listQueues()
throws StorageException
StorageException
public abstract java.util.List<java.lang.String> listQueues(java.lang.String prefix)
throws StorageException
prefix - If prefix is null returns all queues.
StorageExceptionpublic org.soyatec.windowsazure.internal.util.TimeSpan getTimeout()
public boolean isUsePathStyleUris()
public void setUsePathStyleUris(boolean usePathStyleUris)
usePathStyleUris - whether to use/generate path-style or host-style URIspublic java.net.URI getBaseUri()
public java.lang.String getAccountName()
public java.lang.String getBase64Key()
public IRetryPolicy getRetryPolicy()
public void setRetryPolicy(IRetryPolicy retryPolicy)
retryPolicy - The retry policy used for retrying requestspublic StorageAccountInfo getAccountInfo()
public void setAccountInfo(StorageAccountInfo accountInfo)
accountInfo - The user account this queue lives in.public SharedKeyCredentials getCredentials()
public void setCredentials(SharedKeyCredentials credentials)
credentials - The credentials (name and key) of a storage accountpublic void setTimeout(org.soyatec.windowsazure.internal.util.TimeSpan timeout)
timeout - The time out for each request to the storage service.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||