com.webank.wecross.stub.TransactionRequest Maven / Gradle / Ivy
package com.webank.wecross.stub;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class TransactionRequest {
private String method;
private String[] args;
// Optional args
// xaTransactionID, xaTransactionSeq, peers, etc...
private Map options = new HashMap();
public TransactionRequest() {}
public TransactionRequest(String method, String[] args) {
this.method = method;
this.args = args;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String[] getArgs() {
return args;
}
public void setArgs(String[] args) {
this.args = args;
}
public Map getOptions() {
return options;
}
public void setOptions(Map options) {
this.options = options;
}
@Override
public String toString() {
return "TransactionRequest{"
+ "method='"
+ method
+ '\''
+ ", args="
+ Arrays.toString(args)
+ ", options="
+ options
+ '}';
}
}