Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加persistentPipeline #116

Merged
merged 1 commit into from
Jun 6, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/com/qiniu/api/rs/PutPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ public class PutPolicy {
public String persistentOps;

private long deadline;

/**
* 转码队列名,须预先开通
* 资源上传成功后,触发转码时指定独立的队列进行转码
*/
public String persistentPipeline;


public PutPolicy(String scope) {
Expand Down Expand Up @@ -100,6 +106,10 @@ public String marshal() throws JSONException {
if (this.persistentOps != null && this.persistentOps.length() > 0) {
stringer.key("persistentOps").value(this.persistentOps);
}
if(persistentPipeline != null && persistentPipeline.trim().length() > 0){
stringer.key("persistentPipeline").value(this.persistentPipeline);
}

stringer.key("deadline").value(this.deadline);
stringer.endObject();

Expand Down