public List<ChannelListener> getOnConnect() {
        return onConnect;
    }
Sets timeout.

@param timeout the timeout
@return the timeout
core/api/src/main/java/com/alipay/sofa/rpc/config/ConsumerConfig.java