public class Mailer extends java.lang.Object implements MailProcessor
Modifier and Type | Method and Description |
---|---|
RepeatAction |
consume(QueuedMail data)
Consumes the message data and returns an indication of whether the same
data should be delivered again.
|
public Mailer(MailEnv env)
public RepeatAction consume(QueuedMail data)
RepeatConsumer
consume
in interface RepeatConsumer<QueuedMail>
data
- the data received from the channel.Repeat
to indicate the data
should be delivered again or Stop
to indicate
no further action should be taken.