* @param endpoint endpoint url
*/
public AWSQueue(String name, String endpoint) {
this.endpoint = StringUtils.isBlank(endpoint) ? SQS_ENDPOINT : endpoint;
this.name = name;
sqs = new AmazonSQSAsyncClient(new BasicAWSCredentials(Config.AWS_ACCESSKEY, Config.AWS_SECRETKEY));
sqs.setRegion(Region.getRegion(Regions.fromName(Config.AWS_REGION)));
sqs.setEndpoint(this.endpoint);
url = create(name);
Para.addDestroyListener(new Para.DestroyListener() {