/*
 * Copyright 2016-2018 shardingsphere.io.
 * <p>
 * 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.
 * </p>
 */

package io.shardingsphere.jdbc.orchestration.internal.listener;

import io.shardingsphere.core.jdbc.core.datasource.MasterSlaveDataSource;
import io.shardingsphere.core.jdbc.core.datasource.ShardingDataSource;

/**
 * Registry center's listener manager.
 *
 * @author caohao
 * @author panjuan
 */
public interface ListenerManager {
    
    /**
     * Start sharding datasource change listener.
     *
     * @param shardingDataSource sharding datasource
     */
    void start(ShardingDataSource shardingDataSource);
    
    
    /**
     * Start master-slave datasource change listener.
     *
     * @param masterSlaveDataSource master-slave datasource
     */
    void start(MasterSlaveDataSource masterSlaveDataSource);
    
    
    /**
     * Start proxy configuration change listener.
     *
     */
    void start();
}

@@ -682,154 +682,8 @@
 r;%0A%0A
-import io.shardingsphere.core.jdbc.core.datasource.MasterSlaveDataSource;%0Aimport io.shardingsphere.core.jdbc.core.datasource.ShardingDataSource;%0A%0A
 /**%0A
@@ -835,27 +835,16 @@
 harding 
-datasource 
 change l
@@ -863,61 +863,8 @@
   *%0A
-     * @param shardingDataSource sharding datasource%0A
     
@@ -881,50 +881,21 @@
 id s
-tart(S
 harding
-DataSource shardingDataSource
+Start(
 );%0A 
@@ -941,19 +941,8 @@
 ave 
-datasource 
 chan
@@ -965,68 +965,8 @@
   *%0A
-     * @param masterSlaveDataSource master-slave datasource%0A
     
@@ -982,15 +982,9 @@
 oid 
-start(M
+m
 aste
@@ -993,40 +993,14 @@
 lave
-DataSource masterSlaveDataSource
+Start(
 );%0A 
@@ -1039,22 +1039,8 @@
 oxy 
-configuration 
 chan
@@ -1076,17 +1076,22 @@
    void 
-s
+proxyS
 tart();%0A

define new interface