public class MailServiceVertxEBProxy extends Object implements MailService
DEFAULT_POOL_NAME
Constructor and Description |
---|
MailServiceVertxEBProxy(Vertx vertx,
String address) |
Modifier and Type | Method and Description |
---|---|
void |
close()
close the MailClient
|
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<MailResult>> resultHandler)
send a single mail via MailClient
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEventBusProxy
createNonShared, createShared, createShared
public MailService sendMail(MailMessage email, Handler<AsyncResult<MailResult>> resultHandler)
MailClient
sendMail
in interface MailClient
sendMail
in interface MailService
email
- MailMessage object containing the mail text, from/to, attachments etcresultHandler
- will be called when the operation is finished or it fails
(may be null to ignore the result)public void close()
MailClient
close
in interface MailClient
close
in interface MailService
Copyright © 2015. All Rights Reserved.