Fallback Mechanism - Best approach?
问题 Not sure if this question has to be asked in another Stack Exchange site, if so please migrate accordingly! I have three different types of server connection. These can be configured in properties file. Say there are three servers: Server1 Server2 Server3 In Properties file, I've configured as below: ServerPref1 = Server1 ServerPref2 = Server2 ServerPref3 = Server3 In code level, my fall back mechanism is as below: private static void getServerAndConnect() { try { connect(Properties