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

java.lang.Object
  extended byorg.jboss.resource.adapter.mail.inflow.MailActivation
All Implemented Interfaces:
java.lang.Comparable, java.lang.Runnable, Work (src)

public class MailActivation
extends java.lang.Object
implements java.lang.Comparable, Work (src)

The MailActivation encapsulates a MailResourceAdapter#endpointActivation ResourceAdapter.endpointActivation(MessageEndpointFactory,javax.resource.spi.ActivationSpec)


Field Summary
protected  MessageEndpointFactory (src) endpointFactory
          The message endpoint factory
static java.lang.reflect.Method ON_MESSAGE
          The MailListener.onMessage method
protected  MailResourceAdapter (src) ra
          The resource adapter
protected  MailActivationSpec (src) spec
          The activation spec for the mail folder
 
Constructor Summary
MailActivation(MailResourceAdapter (src)  ra, MessageEndpointFactory (src)  endpointFactory, MailActivationSpec (src)  spec)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 long getNextNewMsgCheckTime()
           
 boolean isReleased()
           
 void release()
          Invoked by the work manager as a hint to stop processing
 void run()
           
 void updateNextNewMsgCheckTime(long now)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON_MESSAGE

public static final java.lang.reflect.Method ON_MESSAGE
The MailListener.onMessage method


ra

protected MailResourceAdapter (src)  ra
The resource adapter


spec

protected MailActivationSpec (src)  spec
The activation spec for the mail folder


endpointFactory

protected MessageEndpointFactory (src)  endpointFactory
The message endpoint factory

Constructor Detail

MailActivation

public MailActivation(MailResourceAdapter (src)  ra,
                      MessageEndpointFactory (src)  endpointFactory,
                      MailActivationSpec (src)  spec)
Method Detail

getNextNewMsgCheckTime

public long getNextNewMsgCheckTime()

updateNextNewMsgCheckTime

public void updateNextNewMsgCheckTime(long now)

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

isReleased

public boolean isReleased()

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