org.illeva.jordino.core
Class MailReader

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.illeva.jordino.core.MailReader
All Implemented Interfaces:
java.lang.Runnable

public class MailReader
extends java.lang.Thread

This thread empty the park zone to answer incoming messages.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MailReader(MessageQueue aQueue)
          Build a responder object.
 
Method Summary
 boolean getSemaphore()
          This method returns the state of semaphore to control the thread.
 void run()
          Thread at work.
 void setSemaphore(boolean aFlag)
          This method sets the state of semaphore to control the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailReader

public MailReader(MessageQueue aQueue)
Build a responder object.

Parameters:
aQueue - A queue of messages to respond.
Since:
Jordino Version 1.0
Method Detail

getSemaphore

public boolean getSemaphore()
This method returns the state of semaphore to control the thread.

Since:
Jordino Version 1.0

setSemaphore

public void setSemaphore(boolean aFlag)
This method sets the state of semaphore to control the thread.

Since:
Jordino Version 1.0

run

public void run()
Thread at work. To control the thread status, use the setSemaphore() function.

Since:
Jordino Version 1.0