public class MailService extends MailClient
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<MailService> |
__TYPE_ARG |
Constructor and Description |
---|
MailService(MailService delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
close the MailClient
|
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
|
MailService |
getDelegate() |
static MailService |
newInstance(MailService arg) |
Single<MailResult> |
rxSendMail(MailMessage email)
send a single mail via MailClient
|
MailService |
sendMail(MailMessage email,
Handler<AsyncResult<MailResult>> resultHandler)
send a single mail via MailClient
|
createNonShared, createShared, createShared, newInstance
public static final TypeArg<MailService> __TYPE_ARG
public MailService(MailService delegate)
public MailService getDelegate()
getDelegate
in class MailClient
public 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)
MailClient
sendMail
in class MailClient
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 Single<MailResult> rxSendMail(MailMessage email)
MailClient
rxSendMail
in class MailClient
email
- MailMessage object containing the mail text, from/to, attachments etcpublic void close()
MailClient
close
in class MailClient
public static MailService newInstance(MailService arg)
Copyright © 2017. All rights reserved.