public class MailService extends MailClient
| Constructor and Description |
|---|
MailService(MailService delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static MailService |
createEventBusProxy(Vertx vertx,
String address)
create a proxy of MailService that delegates to the mail service running somewhere else via the event bus
|
Object |
getDelegate() |
static MailService |
newInstance(MailService arg) |
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<MailResult>> resultHandler) |
rx.Observable<MailResult> |
sendMailObservable(MailMessage email) |
createNonShared, createShared, createShared, newInstancepublic MailService(MailService delegate)
public Object getDelegate()
getDelegate in class MailClientpublic static MailService createEventBusProxy(Vertx vertx, String address)
vertx - the Vertx instance the proxy will be run inaddress - the eb address of the mail service running somewhere, default is "vertx.mail"public MailService sendMail(MailMessage email, Handler<AsyncResult<MailResult>> resultHandler)
sendMail in class MailClientpublic rx.Observable<MailResult> sendMailObservable(MailMessage email)
sendMailObservable in class MailClientpublic void close()
close in class MailClientpublic static MailService newInstance(MailService arg)
Copyright © 2015. All rights reserved.