public class MailServiceVertxEBProxy extends Object implements MailService
| Constructor and Description |
|---|
MailServiceVertxEBProxy(Vertx vertx,
String address) |
| Modifier and Type | Method and Description |
|---|---|
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<JsonObject>> resultHandler)
send a single mail via MailService
|
void |
start()
start the MailServer instance if it is running locally (this operation is currently a no-op)
|
void |
stop()
stop the MailServer instance if it is running locally
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createEventBusProxypublic MailService sendMail(MailMessage email, Handler<AsyncResult<JsonObject>> resultHandler)
MailServicesendMail in interface MailServiceemail - 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)
the result JsonObject currently only contains {"result":"success"}public void start()
MailServicestart in interface MailServicepublic void stop()
MailServicethis operation shuts down the connection pool, doesn't wait for completion of the close operations when the mail service is running on the event bus, this operation has no effect
stop in interface MailServiceCopyright © 2015. All Rights Reserved.