org.jboss.resource.adapter.mail.inflow
Class NewMsgsWorker

java.lang.Object
  extended byorg.jboss.resource.adapter.mail.inflow.NewMsgsWorker
All Implemented Interfaces:
java.util.EventListener, java.lang.Runnable, Work (src) , WorkListener (src)

public class NewMsgsWorker
extends java.lang.Object
implements Work (src) , WorkListener (src)


Constructor Summary
NewMsgsWorker(WorkManager (src)  mgr)
           
 
Method Summary
 void release()
          Invoked by the work manager as a hint to stop processing
 void run()
           
 void watch(MailActivation (src)  activation)
           
 void workAccepted(WorkEvent (src)  e)
          Invoked when work is accepted
 void workCompleted(WorkEvent (src)  e)
          Invoked when work is completed
 void workRejected(WorkEvent (src)  e)
          Invoked when work is rejected
 void workStarted(WorkEvent (src)  e)
          Invoked when work is started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewMsgsWorker

public NewMsgsWorker(WorkManager (src)  mgr)
Method Detail

watch

public void watch(MailActivation (src)  activation)
           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

release

public void release()
Description copied from interface: Work (src)
Invoked by the work manager as a hint to stop processing

Specified by:
release in interface Work (src)

run

public void run()
Specified by:
run in interface java.lang.Runnable

workAccepted

public void workAccepted(WorkEvent (src)  e)
Description copied from interface: WorkListener (src)
Invoked when work is accepted

Specified by:
workAccepted in interface WorkListener (src)
Parameters:
e - the event

workRejected

public void workRejected(WorkEvent (src)  e)
Description copied from interface: WorkListener (src)
Invoked when work is rejected

Specified by:
workRejected in interface WorkListener (src)
Parameters:
e - the event

workStarted

public void workStarted(WorkEvent (src)  e)
Description copied from interface: WorkListener (src)
Invoked when work is started

Specified by:
workStarted in interface WorkListener (src)
Parameters:
e - the event

workCompleted

public void workCompleted(WorkEvent (src)  e)
Description copied from interface: WorkListener (src)
Invoked when work is completed

Specified by:
workCompleted in interface WorkListener (src)
Parameters:
e - the event