public class MailActivation extends Object implements Comparable, javax.resource.spi.work.Work
| Modifier and Type | Field and Description |
|---|---|
protected javax.resource.spi.endpoint.MessageEndpointFactory |
endpointFactory
The message endpoint factory
|
static 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(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 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(Object obj)
compareTo in interface Comparablepublic boolean isReleased()
public void release()
release in interface javax.resource.spi.work.WorkCopyright © 2014 JBoss by Red Hat. All rights reserved.