com.aliyuncs.policy.retry.pattern.SimplePattern Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-core Show documentation
Show all versions of aliyun-java-sdk-core Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
The newest version!
package com.aliyuncs.policy.retry.pattern;
import com.aliyuncs.policy.retry.RetryUtil;
public class SimplePattern implements Pattern {
private static String context;
private SimplePattern anotherPattern;
public SimplePattern(String context) {
SimplePattern.context = context;
}
public String getContext() {
return context;
}
@Override
public Boolean meetState() {
return anotherPattern != null && context.equals(anotherPattern.getContext());
}
@Override
public int escapeTime() {
return RetryUtil.DEFAULT_ESCAPE_TIME;
}
public void readFormHeadersContent(String content) {
this.anotherPattern = new SimplePattern(content);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy