sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 53043 - http://anonsvn.icesoft.org/repo / icenotify / tags / vras-1.3.1 / icenotify / cloud / src / main / java / org / icesoft / notify / cloud / core / email / EmailNotificationConsumer.java
Unified Diff View - EmailNotificationConsumer.java
/icenotify/tags/vras-1.3.1/icenotify/cloud/src/main/java/org/icesoft/notify/cloud/core/email/EmailNotificationConsumer.java @ revision 53042
/icenotify/tags/vras-1.3.1/icenotify/cloud/src/main/java/org/icesoft/notify/cloud/core/email/EmailNotificationConsumer.java @ revision 53043
@@ -98,6 +98,7 @@             if (!isRunning()) {                 setRunning(true);             } +            long _heartbeatTimestamp = System.currentTimeMillis();             while (isRunning()) {                 try {                     EmailNotification _notification = @@ -134,6 +135,23 @@                                 );                             }                         } +                        _heartbeatTimestamp = System.currentTimeMillis(); +                    } else { +                        if ((System.currentTimeMillis() - _heartbeatTimestamp) >= 300000) { +                            if (LOGGER.isLoggable(Level.FINE)) { +                                LOGGER.log( +                                    Level.FINE, +                                    getName() + " | " + +                                        "Heartbeat. " + +                                            "(" + +                                                "Max Connections: '" + +                                                    getConnection().getNotificationProvider().getMaxConnections() + +                                                "'" + +                                            ")" +                                ); +                            } +                            _heartbeatTimestamp = System.currentTimeMillis(); +                        }                     }                 } catch (final InterruptedException exception) {                     if (LOGGER.isLoggable(Level.WARNING)) {


feed icon

sventon 2.5.1