|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.sqs.model.ReceiveMessageRequest
public class ReceiveMessageRequest
Container for the parameters to the ReceiveMessage operation
.
Retrieves one or more messages from the specified queue, including the message body and message ID of each message. Messages returned by this action stay in the queue until you delete them. However, once a message is returned to a ReceiveMessage request, it is not returned on subsequent ReceiveMessage requests for the duration of the VisibilityTimeout. If you do not specify a VisibilityTimeout in the request, the overall visibility timeout for the queue is used for the returned messages.
AmazonSQS.receiveMessage(ReceiveMessageRequest)
Constructor Summary | |
---|---|
ReceiveMessageRequest()
Default constructor for a new ReceiveMessageRequest object. |
|
ReceiveMessageRequest(String queueUrl)
Constructs a new ReceiveMessageRequest object. |
Method Summary | |
---|---|
List<String> |
getAttributeNames()
A list of attributes to get. |
Integer |
getMaxNumberOfMessages()
The maximum number of messages to return. |
String |
getQueueUrl()
|
Integer |
getVisibilityTimeout()
The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. |
void |
setAttributeNames(Collection<String> attributeNames)
A list of attributes to get. |
void |
setMaxNumberOfMessages(Integer maxNumberOfMessages)
The maximum number of messages to return. |
void |
setQueueUrl(String queueUrl)
|
void |
setVisibilityTimeout(Integer visibilityTimeout)
The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ReceiveMessageRequest |
withAttributeNames(Collection<String> attributeNames)
A list of attributes to get. |
ReceiveMessageRequest |
withAttributeNames(String... attributeNames)
A list of attributes to get. |
ReceiveMessageRequest |
withMaxNumberOfMessages(Integer maxNumberOfMessages)
The maximum number of messages to return. |
ReceiveMessageRequest |
withQueueUrl(String queueUrl)
Returns a reference to this object so that method calls can be chained together. |
ReceiveMessageRequest |
withVisibilityTimeout(Integer visibilityTimeout)
The duration (in seconds) that the received messages are hidden from subsequent retrieve requests after being retrieved by a ReceiveMessage request. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReceiveMessageRequest()
public ReceiveMessageRequest(String queueUrl)
queueUrl
- Method Detail |
---|
public String getQueueUrl()
public void setQueueUrl(String queueUrl)
queueUrl
- public ReceiveMessageRequest withQueueUrl(String queueUrl)
Returns a reference to this object so that method calls can be chained together.
queueUrl
-
public List<String> getAttributeNames()
public void setAttributeNames(Collection<String> attributeNames)
attributeNames
- A list of attributes to get.public ReceiveMessageRequest withAttributeNames(String... attributeNames)
Returns a reference to this object so that method calls can be chained together.
attributeNames
- A list of attributes to get.
public ReceiveMessageRequest withAttributeNames(Collection<String> attributeNames)
Returns a reference to this object so that method calls can be chained together.
attributeNames
- A list of attributes to get.
public Integer getMaxNumberOfMessages()
All of the messages are not necessarily returned.
All of the messages are not necessarily returned.
public void setMaxNumberOfMessages(Integer maxNumberOfMessages)
All of the messages are not necessarily returned.
maxNumberOfMessages
- The maximum number of messages to return. Amazon SQS never returns
more messages than this value but may return fewer. All of the messages are not necessarily returned.
public ReceiveMessageRequest withMaxNumberOfMessages(Integer maxNumberOfMessages)
All of the messages are not necessarily returned.
Returns a reference to this object so that method calls can be chained together.
maxNumberOfMessages
- The maximum number of messages to return. Amazon SQS never returns
more messages than this value but may return fewer. All of the messages are not necessarily returned.
public Integer getVisibilityTimeout()
public void setVisibilityTimeout(Integer visibilityTimeout)
visibilityTimeout
- The duration (in seconds) that the received messages are hidden from
subsequent retrieve requests after being retrieved by a ReceiveMessage
request.public ReceiveMessageRequest withVisibilityTimeout(Integer visibilityTimeout)
Returns a reference to this object so that method calls can be chained together.
visibilityTimeout
- The duration (in seconds) that the received messages are hidden from
subsequent retrieve requests after being retrieved by a ReceiveMessage
request.
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |