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
|
boolean |
equals(Object o) |
MailService |
getDelegate() |
int |
hashCode() |
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
|
Observable<MailResult> |
sendMailObservable(MailMessage email)
Deprecated.
|
String |
toString() |
createNonShared, createShared, createShared, newInstancepublic static final TypeArg<MailService> __TYPE_ARG
public MailService(MailService delegate)
public String toString()
toString in class MailClientpublic boolean equals(Object o)
equals in class MailClientpublic int hashCode()
hashCode in class MailClientpublic MailService 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)
MailClientsendMail in class MailClientemail - 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)@Deprecated public Observable<MailResult> sendMailObservable(MailMessage email)
MailClientsendMailObservable in class MailClientemail - MailMessage object containing the mail text, from/to, attachments etcpublic Single<MailResult> rxSendMail(MailMessage email)
MailClientrxSendMail in class MailClientemail - MailMessage object containing the mail text, from/to, attachments etcpublic void close()
MailClientclose in class MailClientpublic static MailService newInstance(MailService arg)
Copyright © 2018 Eclipse. All rights reserved.