BrightSide Workbench Full Report + Source Code
org.turro.mail.queue.QueuedSender Class Referenceabstract
Inheritance diagram for org.turro.mail.queue.QueuedSender:
Collaboration diagram for org.turro.mail.queue.QueuedSender:

Public Member Functions

 QueuedSender ()
 
void send ()
 
void pause ()
 
void run ()
 

Static Public Member Functions

static AtomicCounter getCounter ()
 

Protected Member Functions

abstract void doSend ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file QueuedSender.java.

Constructor & Destructor Documentation

◆ QueuedSender()

org.turro.mail.queue.QueuedSender.QueuedSender ( )

Definition at line 34 of file QueuedSender.java.

34  {
35  }

Member Function Documentation

◆ doSend()

abstract void org.turro.mail.queue.QueuedSender.doSend ( )
abstractprotected

◆ getCounter()

static AtomicCounter org.turro.mail.queue.QueuedSender.getCounter ( )
static

Definition at line 78 of file QueuedSender.java.

78  {
79  return openSenders;
80  }

◆ pause()

void org.turro.mail.queue.QueuedSender.pause ( )

Definition at line 44 of file QueuedSender.java.

44  {
45  try {
46  Thread.sleep(300);
47  } catch (InterruptedException ex) {
48  Logger.getLogger(QueuedSender.class.getName()).log(Level.SEVERE, ElephantContext.logMsg("Pausing..."), ex);
49  }
50  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void org.turro.mail.queue.QueuedSender.run ( )

Definition at line 55 of file QueuedSender.java.

55  {
56  SENDER_LOCK.lock();
57  try {
58  openSenders.increment();
59  try{
60  doSend();
61  } catch(Exception ex) {
62  Logger.getLogger(QueuedSender.class.getName()).log(Level.SEVERE, ElephantContext.logMsg("Sending..."), ex);
63  }
64  } finally {
65  openSenders.decrement();
66  SENDER_LOCK.unlock();
67  }
68  }
Here is the call graph for this function:

◆ send()

void org.turro.mail.queue.QueuedSender.send ( )

Definition at line 39 of file QueuedSender.java.

39  {
40  Thread sender = new Thread(this, "QueuedSenderTask");
41  sender.start();
42  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: