public class MailActivation
extends java.lang.Object
implements java.lang.Comparable, javax.resource.spi.work.Work
| Modifier and Type | Field and Description |
|---|---|
protected javax.resource.spi.endpoint.MessageEndpointFactory |
endpointFactory
The message endpoint factory
|
static java.lang.reflect.Method |
ON_MESSAGE
The MailListener.onMessage method
|
protected MailActivationSpec |
spec
The activation spec for the mail folder
|
| Constructor and Description |
|---|
MailActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
MailActivationSpec spec)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object obj) |
long |
getNextNewMsgCheckTime()
Get the next message check time
|
boolean |
isReleased()
Is the activation released ?
|
void |
release()
Release the activation
|
void |
run() |
void |
updateNextNewMsgCheckTime(long now)
Update the next message check time
|
public static final java.lang.reflect.Method ON_MESSAGE
protected MailActivationSpec spec
protected javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory
public MailActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
MailActivationSpec spec)
endpointFactory - The message endpoint factoryspec - The mail activation specpublic long getNextNewMsgCheckTime()
public void updateNextNewMsgCheckTime(long now)
now - The current timepublic int compareTo(java.lang.Object obj)
compareTo in interface java.lang.Comparablepublic boolean isReleased()
public void release()
release in interface javax.resource.spi.work.Workpublic void run()
run in interface java.lang.RunnableCopyright ? 2010 Red Hat Middleware LLC (http://www.jboss.com/)