19 package org.turro.mail.queue;
21 import java.util.concurrent.locks.Lock;
22 import java.util.concurrent.locks.ReentrantLock;
23 import java.util.logging.Level;
24 import java.util.logging.Logger;
25 import org.turro.elephant.context.ElephantContext;
26 import org.turro.util.AtomicCounter;
40 Thread sender =
new Thread(
this,
"QueuedSenderTask");
47 }
catch (InterruptedException ex) {
58 openSenders.increment();
61 }
catch(Exception ex) {
65 openSenders.decrement();
72 private static final Lock SENDER_LOCK =
new ReentrantLock();
76 private static final AtomicCounter openSenders =
new AtomicCounter();
static String logMsg(String msg)
static AtomicCounter getCounter()