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, wait
create, createEventBusProxy
public MailService sendMail(MailMessage email, Handler<AsyncResult<JsonObject>> resultHandler)
MailService
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)
the result JsonObject currently only contains {"result":"success"}
public void start()
MailService
start
in interface MailService
public void stop()
MailService
this 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 MailService
Copyright © 2015. All Rights Reserved.