/** * Notifies context listeners about exception. * @param event context exception event to be fired. */ public void notifyException(ContextExceptionEvent event) { ContextExceptionListener[] listeners = getContextExceptionListeners(); for (int i = 0; i < listeners.length; i++) { try { listeners[i].contextException(event); } catch (Throwable th) { // TODO remove logger.log(Level.SEVERE, "", th); } } }
/** * Notifies context listeners about forceful disconnect. */ private void closedNotifyContext() { ContextVirtualCircuitExceptionEvent cvcee = new ContextVirtualCircuitExceptionEvent((Context)context, socketAddress.getAddress(), CAStatus.DISCONN); ContextExceptionListener[] listeners = context.getContextExceptionListeners(); for (int i = 0; i < listeners.length; i++) { try { listeners[i].contextVirtualCircuitException(cvcee); } catch (Throwable th) { // TODO remove logger.log(Level.SEVERE, "", th); } } }
/** * Notifies context listeners about forceful disconnect. */ private void closedNotifyContext() { ContextVirtualCircuitExceptionEvent cvcee = new ContextVirtualCircuitExceptionEvent((Context)context, socketAddress.getAddress(), CAStatus.DISCONN); ContextExceptionListener[] listeners = context.getContextExceptionListeners(); for (int i = 0; i < listeners.length; i++) { try { listeners[i].contextVirtualCircuitException(cvcee); } catch (Throwable th) { // TODO remove logger.log(Level.SEVERE, "", th); } } }
listeners[i].contextVirtualCircuitException(cvcee);
/** * Notifies context listeners about exception. * @param event context exception event to be fired. */ public void notifyException(ContextExceptionEvent event) { ContextExceptionListener[] listeners = getContextExceptionListeners(); for (int i = 0; i < listeners.length; i++) { try { listeners[i].contextException(event); } catch (Throwable th) { // TODO remove logger.log(Level.SEVERE, "", th); } } }
listeners[i].contextVirtualCircuitException(cvcee);