org.jclouds.sqs.domain
Class QueueAttributes

java.lang.Object
  extended by org.jclouds.sqs.domain.QueueAttributes

public class QueueAttributes
extends Object

Author:
Adrian Cole
See Also:

Nested Class Summary
static class QueueAttributes.Builder<T extends QueueAttributes.Builder<T>>
           
 
Field Summary
protected  long approximateNumberOfMessages
           
protected  long approximateNumberOfMessagesDelayed
           
protected  long approximateNumberOfMessagesNotVisible
           
protected  Date createdTimestamp
           
protected  int delaySeconds
           
protected  Date lastModifiedTimestamp
           
protected  int maximumMessageSize
           
protected  int messageRetentionPeriod
           
protected  String queueArn
           
protected  com.google.common.base.Optional<String> rawPolicy
           
protected  int visibilityTimeout
           
 
Constructor Summary
protected QueueAttributes(String queueArn, long approximateNumberOfMessages, long approximateNumberOfMessagesNotVisible, long approximateNumberOfMessagesDelayed, int visibilityTimeout, Date createdTimestamp, Date lastModifiedTimestamp, com.google.common.base.Optional<String> rawPolicy, int maximumMessageSize, int messageRetentionPeriod, int delaySeconds)
           
 
Method Summary
static QueueAttributes.Builder<?> builder()
           
 boolean equals(Object obj)
           
 long getApproximateNumberOfMessages()
           
 long getApproximateNumberOfMessagesDelayed()
           
 long getApproximateNumberOfMessagesNotVisible()
           
 Date getCreatedTimestamp()
           
 int getDelaySeconds()
           
 Date getLastModifiedTimestamp()
           
 int getMaximumMessageSize()
           
 int getMessageRetentionPeriod()
           
 String getQueueArn()
           
 com.google.common.base.Optional<String> getRawPolicy()
          Note this is in raw Json
 int getVisibilityTimeout()
           
 int hashCode()
           
 QueueAttributes.Builder<?> toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

approximateNumberOfMessages

protected final long approximateNumberOfMessages

approximateNumberOfMessagesNotVisible

protected final long approximateNumberOfMessagesNotVisible

visibilityTimeout

protected final int visibilityTimeout

createdTimestamp

protected final Date createdTimestamp

lastModifiedTimestamp

protected final Date lastModifiedTimestamp

approximateNumberOfMessagesDelayed

protected final long approximateNumberOfMessagesDelayed

rawPolicy

protected final com.google.common.base.Optional<String> rawPolicy

maximumMessageSize

protected final int maximumMessageSize

messageRetentionPeriod

protected final int messageRetentionPeriod

queueArn

protected final String queueArn

delaySeconds

protected int delaySeconds
Constructor Detail

QueueAttributes

protected QueueAttributes(String queueArn,
                          long approximateNumberOfMessages,
                          long approximateNumberOfMessagesNotVisible,
                          long approximateNumberOfMessagesDelayed,
                          int visibilityTimeout,
                          Date createdTimestamp,
                          Date lastModifiedTimestamp,
                          com.google.common.base.Optional<String> rawPolicy,
                          int maximumMessageSize,
                          int messageRetentionPeriod,
                          int delaySeconds)
Method Detail

builder

public static QueueAttributes.Builder<?> builder()

toBuilder

public QueueAttributes.Builder<?> toBuilder()

getQueueArn

public String getQueueArn()
See Also:
Attribute.QUEUE_ARN

getApproximateNumberOfMessages

public long getApproximateNumberOfMessages()
See Also:
Attribute.APPROXIMATE_NUMBER_OF_MESSAGES

getApproximateNumberOfMessagesNotVisible

public long getApproximateNumberOfMessagesNotVisible()
See Also:
Attribute.APPROXIMATE_NUMBER_OF_MESSAGES_NOT_VISIBLE

getApproximateNumberOfMessagesDelayed

public long getApproximateNumberOfMessagesDelayed()
See Also:
Attribute.APPROXIMATE_NUMBER_OF_MESSAGES_DELAYED

getVisibilityTimeout

public int getVisibilityTimeout()
See Also:
Attribute.VISIBILITY_TIMEOUT

getCreatedTimestamp

public Date getCreatedTimestamp()
See Also:
Attribute.CREATED_TIMESTAMP

getLastModifiedTimestamp

public Date getLastModifiedTimestamp()
See Also:
Attribute.LAST_MODIFIED_TIMESTAMP

getRawPolicy

public com.google.common.base.Optional<String> getRawPolicy()
Note this is in raw Json

See Also:
Attribute.POLICY

getMaximumMessageSize

public int getMaximumMessageSize()
See Also:
Attribute.MAXIMUM_MESSAGE_SIZE

getMessageRetentionPeriod

public int getMessageRetentionPeriod()
See Also:
Attribute.MESSAGE_RETENTION_PERIOD

getDelaySeconds

public int getDelaySeconds()
See Also:
Attribute.DELAY_SECONDS

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.