blob: 5de674c20fb329a8ce6c855d7c1bcb29f6bc8a9c [file] [log] [blame]
/*
* Copyright 1999-2011 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.dubbo.config;
/**
* ConsumerConfig
*
* @author william.liangf
*/
public class ConsumerConfig extends AbstractReferenceConfig {
private static final long serialVersionUID = 2827274711143680600L;
// 是否为缺省
private Boolean isDefault;
@Override
public void setTimeout(Integer timeout) {
super.setTimeout(timeout);
String rmiTimeout = System.getProperty("sun.rmi.transport.tcp.responseTimeout");
if (timeout != null && timeout > 0
&& (rmiTimeout == null || rmiTimeout.length() == 0)) {
System.setProperty("sun.rmi.transport.tcp.responseTimeout", String.valueOf(timeout));
}
}
public Boolean isDefault() {
return isDefault;
}
public void setDefault(Boolean isDefault) {
this.isDefault = isDefault;
}
}