| | |
| | | synchronized (listenerLock) { |
| | | try { |
| | | listener.handleConnectionFactoryOffline(factory, error); |
| | | } catch (Throwable t) { |
| | | handleListenerException(t); |
| | | } catch (RuntimeException e) { |
| | | handleListenerException(e); |
| | | } |
| | | } |
| | | |
| | |
| | | synchronized (listenerLock) { |
| | | try { |
| | | listener.handleConnectionFactoryOnline(factory); |
| | | } catch (Throwable t) { |
| | | handleListenerException(t); |
| | | } catch (RuntimeException e) { |
| | | handleListenerException(e); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | private void handleListenerException(Throwable t) { |
| | | private void handleListenerException(RuntimeException e) { |
| | | if (DEBUG_LOG.isLoggable(Level.SEVERE)) { |
| | | DEBUG_LOG.log(Level.SEVERE, |
| | | "A run-time error occurred while processing a load-balancer event", t); |
| | | "A run-time error occurred while processing a load-balancer event", e); |
| | | } |
| | | } |
| | | } |