@@ -0,0 +1,2526 @@
+/*%0A * Copyright 2016 leon chen%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.moilioncircle.redis.replicator;%0A%0A/**%0A * @author leon.chen%0A * @since 2016/8/15%0A */%0Apublic class Configuration %7B%0A%0A    /**%0A     * factory%0A     * @return Configuration%0A     */%0A    public static Configuration defaultSetting() %7B%0A        return new Configuration();%0A    %7D%0A%0A    /**%0A     * socket connection timeout%0A     */%0A    private int connectionTimeout = 30000;%0A%0A    /**%0A     * socket input stream read timeout%0A     */%0A    private int readTimeout = 30000;%0A%0A    /**%0A     * socket receive buffer size%0A     */%0A    private int receiveBufferSize = 0;%0A%0A    /**%0A     * socket send buffer size%0A     */%0A    private int sendBufferSize = 0;%0A%0A    /**%0A     * if readTimeout %3C=0 this property inefficiency.%0A     * socket input stream read retries%0A     */%0A    private int retries = 5;%0A%0A    /**%0A     * auth password%0A     */%0A    private String authPassword = null;%0A%0A    public int getConnectionTimeout() %7B%0A        return connectionTimeout;%0A    %7D%0A%0A    public void setConnectionTimeout(int connectionTimeout) %7B%0A        this.connectionTimeout = connectionTimeout;%0A    %7D%0A%0A    public int getReadTimeout() %7B%0A        return readTimeout;%0A    %7D%0A%0A    public void setReadTimeout(int readTimeout) %7B%0A        this.readTimeout = readTimeout;%0A    %7D%0A%0A    public int getRetries() %7B%0A        return retries;%0A    %7D%0A%0A    public void setRetries(int retries) %7B%0A        this.retries = retries;%0A    %7D%0A%0A    public String getAuthPassword() %7B%0A        return authPassword;%0A    %7D%0A%0A    public void setAuthPassword(String authPassword) %7B%0A        this.authPassword = authPassword;%0A    %7D%0A%0A    public int getReceiveBufferSize() %7B%0A        return receiveBufferSize;%0A    %7D%0A%0A    public void setReceiveBufferSize(int receiveBufferSize) %7B%0A        this.receiveBufferSize = receiveBufferSize;%0A    %7D%0A%0A    public int getSendBufferSize() %7B%0A        return sendBufferSize;%0A    %7D%0A%0A    public void setSendBufferSize(int sendBufferSize) %7B%0A        this.sendBufferSize = sendBufferSize;%0A    %7D%0A%7D%0A

Create Configuration.java