org.illeva.jordino.core
Class MessageQueue

java.lang.Object
  extended byorg.illeva.jordino.core.MessageQueue

public class MessageQueue
extends java.lang.Object

This is a FIFO queue to park the incoming messages.


Constructor Summary
MessageQueue()
          Build a park zone.
 
Method Summary
 javax.mail.internet.MimeMessage pop()
          Return an incoming message to process.
 void push(javax.mail.Message aMsg)
          Populate the park zone with incoming messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageQueue

public MessageQueue()
Build a park zone.

Method Detail

pop

public javax.mail.internet.MimeMessage pop()
Return an incoming message to process.
This method stop the ReaderMail thread until there is a message to process.

Since:
Jordino Version 1.0

push

public void push(javax.mail.Message aMsg)
Populate the park zone with incoming messages. Only the messages with string "[jd" into subject are elaborated end deleted from inbox. Notify all the event.

Since:
Jordino Version 1.0