|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.adapters.mail.inflow.MailActivation
public class MailActivation

The MailActivation encapsulates a MailResourceAdapter#endpointActivation
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
MailActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
MailActivationSpec spec)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Method ON_MESSAGE
protected MailActivationSpec spec
protected javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory
| Constructor Detail |
|---|
public MailActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
MailActivationSpec spec)
endpointFactory - The message endpoint factoryspec - The mail activation spec| Method Detail |
|---|
public 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.Workpublic void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||