package com.lifeonwalden.ebmms.common.bean;

import java.io.Serializable;

/**
 * request for calling remote method
 */
public class Request implements Serializable {
    private static final long serialVersionUID = 8316181377929274990L;
    /**
     * message id
     */
    private String msgId;

    /**
     * remote service
     */
    private String service;

    /**
     * remote operation method
     */
    private String method;

    /**
     * request parameter
     */
    private Object[] parameters;

    public String getMsgId() {
        return msgId;
    }

    public Request setMsgId(String msgId) {
        this.msgId = msgId;

        return this;
    }

    public String getService() {
        return service;
    }

    public Request setService(String service) {
        this.service = service;

        return this;
    }

    public String getMethod() {
        return method;
    }

    public Request setMethod(String method) {
        this.method = method;

        return this;
    }

    public Object[] getParameters() {
        return parameters;
    }

    public Request setParameters(Object[] parameters) {
        this.parameters = parameters;

        return this;
    }
}

@@ -505,24 +505,110 @@
 arameters;%0A%0A
+    /**%0A     * allowed maximum times of retry%0A     */%0A    private int maxRetryTimes;%0A%0A
     public S
@@ -1289,11 +1289,189 @@
 s;%0A    %7D
+%0A%0A    public int getMaxRetryTimes() %7B%0A        return maxRetryTimes;%0A    %7D%0A%0A    public void setMaxRetryTimes(int maxRetryTimes) %7B%0A        this.maxRetryTimes = maxRetryTimes;%0A    %7D
 %0A%7D%0A

add maxRetryTimes for Request