热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何使用`com.amazonaws.services.sqs.model.DeleteMessageRequest`的`getQueueUrl()`方法及其代码示例解析

本文整理了Java中com.amazonaws.services.sqs.model.DeleteMessageRequest.getQueueUrl()方法的一些代码示例,展示了DeleteMess

本文整理了Java中com.amazonaws.services.sqs.model.DeleteMessageRequest.getQueueUrl()方法的一些代码示例,展示了DeleteMessageRequest.getQueueUrl()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DeleteMessageRequest.getQueueUrl()方法的具体详情如下:
包路径:com.amazonaws.services.sqs.model.DeleteMessageRequest
类名称:DeleteMessageRequest
方法名:getQueueUrl

DeleteMessageRequest.getQueueUrl介绍

[英]The URL of the Amazon SQS queue from which messages are deleted.

Queue URLs and names are case-sensitive.
[中]从中删除消息的Amazon SQS队列的URL。
队列URL和名称区分大小写。

代码示例

代码示例来源:origin: aws/aws-sdk-java

@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode());
hashCode = prime * hashCode + ((getReceiptHandle() == null) ? 0 : getReceiptHandle().hashCode());
return hashCode;
}

代码示例来源:origin: aws/aws-sdk-java

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteMessageRequest == false)
return false;
DeleteMessageRequest other = (DeleteMessageRequest) obj;
if (other.getQueueUrl() == null ^ this.getQueueUrl() == null)
return false;
if (other.getQueueUrl() != null && other.getQueueUrl().equals(this.getQueueUrl()) == false)
return false;
if (other.getReceiptHandle() == null ^ this.getReceiptHandle() == null)
return false;
if (other.getReceiptHandle() != null && other.getReceiptHandle().equals(this.getReceiptHandle()) == false)
return false;
return true;
}

代码示例来源:origin: aws/aws-sdk-java

/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getQueueUrl() != null)
sb.append("QueueUrl: ").append(getQueueUrl()).append(",");
if (getReceiptHandle() != null)
sb.append("ReceiptHandle: ").append(getReceiptHandle());
sb.append("}");
return sb.toString();
}

代码示例来源:origin: aws/aws-sdk-java

public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException,
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessageSync(deleteMessageRequest);
}

代码示例来源:origin: aws/aws-sdk-java

public Future deleteMessageAsync(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException,
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}

代码示例来源:origin: aws/aws-sdk-java

public Future deleteMessageAsync(DeleteMessageRequest deleteMessageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}

代码示例来源:origin: aws/aws-sdk-java

public Request marshall(DeleteMessageRequest deleteMessageRequest) {
if (deleteMessageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
Request request = new DefaultRequest(deleteMessageRequest, "AmazonSQS");
request.addParameter("Action", "DeleteMessage");
request.addParameter("Version", "2012-11-05");
request.setHttpMethod(HttpMethodName.POST);
if (deleteMessageRequest.getQueueUrl() != null) {
request.addParameter("QueueUrl", StringUtils.fromString(deleteMessageRequest.getQueueUrl()));
}
if (deleteMessageRequest.getReceiptHandle() != null) {
request.addParameter("ReceiptHandle", StringUtils.fromString(deleteMessageRequest.getReceiptHandle()));
}
return request;
}

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode());
hashCode = prime * hashCode
+ ((getReceiptHandle() == null) ? 0 : getReceiptHandle().hashCode());
return hashCode;
}

代码示例来源:origin: aws-amplify/aws-sdk-android

/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getQueueUrl() != null)
sb.append("QueueUrl: " + getQueueUrl() + ",");
if (getReceiptHandle() != null)
sb.append("ReceiptHandle: " + getReceiptHandle());
sb.append("}");
return sb.toString();
}

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteMessageRequest == false)
return false;
DeleteMessageRequest other = (DeleteMessageRequest) obj;
if (other.getQueueUrl() == null ^ this.getQueueUrl() == null)
return false;
if (other.getQueueUrl() != null && other.getQueueUrl().equals(this.getQueueUrl()) == false)
return false;
if (other.getReceiptHandle() == null ^ this.getReceiptHandle() == null)
return false;
if (other.getReceiptHandle() != null
&& other.getReceiptHandle().equals(this.getReceiptHandle()) == false)
return false;
return true;
}
}

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
public Future deleteMessageAsync(
DeleteMessageRequest deleteMessageRequest)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
public Future deleteMessageAsync(
DeleteMessageRequest deleteMessageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}

代码示例来源:origin: aws-amplify/aws-sdk-android

@Override
public void deleteMessage(DeleteMessageRequest deleteMessageRequest)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
buffer.deleteMessageSync(deleteMessageRequest);
}

代码示例来源:origin: aws-amplify/aws-sdk-android

public Request marshall(DeleteMessageRequest deleteMessageRequest) {
if (deleteMessageRequest == null) {
throw new AmazonClientException(
"Invalid argument passed to marshall(DeleteMessageRequest)");
}
Request request = new DefaultRequest(
deleteMessageRequest, "AmazonSQS");
request.addParameter("Action", "DeleteMessage");
request.addParameter("Version", "2012-11-05");
String prefix;
if (deleteMessageRequest.getQueueUrl() != null) {
prefix = "QueueUrl";
String queueUrl = deleteMessageRequest.getQueueUrl();
request.addParameter(prefix, StringUtils.fromString(queueUrl));
}
if (deleteMessageRequest.getReceiptHandle() != null) {
prefix = "ReceiptHandle";
String receiptHandle = deleteMessageRequest.getReceiptHandle();
request.addParameter(prefix, StringUtils.fromString(receiptHandle));
}
return request;
}
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs

@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode());
hashCode = prime * hashCode + ((getReceiptHandle() == null) ? 0 : getReceiptHandle().hashCode());
return hashCode;
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs

public Future deleteMessageAsync(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException,
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs

public Future deleteMessageAsync(DeleteMessageRequest deleteMessageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}

代码示例来源:origin: com.amazonaws/aws-java-sdk-sqs

public DeleteMessageResult deleteMessage(DeleteMessageRequest deleteMessageRequest) throws AmazonServiceException,
AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessageSync(deleteMessageRequest);
}

代码示例来源:origin: com.amazonaws/aws-android-sdk-sqs

@Override
public Future deleteMessageAsync(
DeleteMessageRequest deleteMessageRequest)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, null);
}

代码示例来源:origin: com.amazonaws/aws-android-sdk-sqs

@Override
public Future deleteMessageAsync(
DeleteMessageRequest deleteMessageRequest,
AsyncHandler asyncHandler)
throws AmazonServiceException, AmazonClientException {
ResultConverter.appendUserAgent(deleteMessageRequest, USER_AGENT);
QueueBuffer buffer = getQBuffer(deleteMessageRequest.getQueueUrl());
return buffer.deleteMessage(deleteMessageRequest, asyncHandler);
}

推荐阅读
author-avatar
江魂2010_717
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有