@ Override public Collection < String > getSlaveDataSourceNames ( ) { if ( disabledDataSourceNames . isEmpty ( ) ) { return super . getSlaveDataSourceNames ( ) ; } Collection < String > result = new LinkedList <> ( super . getSlaveDataSourceNames ( ) ) ; result . removeAll ( disabledDataSourceNames ) ; return result ; }
Get slave data source names .