Beispiel #1
0
 protected synchronized void startConnectionReaper() {
   if (connection_reaper == null || connection_reaper.isDone())
     connection_reaper =
         timer.scheduleWithFixedDelay(
             new ConnectionReaper(),
             conn_expiry_timeout,
             conn_expiry_timeout,
             TimeUnit.MILLISECONDS);
 }
Beispiel #2
0
 protected void startStableTask() {
   if (stable_task_future == null || stable_task_future.isDone()) {
     final Runnable stable_task =
         new Runnable() {
           public void run() {
             try {
               sendStableMessages();
             } catch (Throwable t) {
               log.error("sending of STABLE messages failed", t);
             }
           }
         };
     stable_task_future =
         timer.scheduleWithFixedDelay(
             stable_task, stable_interval, stable_interval, TimeUnit.MILLISECONDS);
     if (log.isTraceEnabled()) log.trace("stable task started");
   }
 }
Beispiel #3
0
 protected void startRetransmitTask() {
   if (xmit_task == null || xmit_task.isDone())
     xmit_task =
         timer.scheduleWithFixedDelay(
             new RetransmitTask(), 0, xmit_interval, TimeUnit.MILLISECONDS);
 }