public class MailService extends MailClient
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<MailService> |
__TYPE_ARG |
static String |
DEFAULT_POOL_NAME
The name of the default pool
|
| Constructor and Description |
|---|
MailService(MailService delegate) |
MailService(Object 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
|
String |
toString() |
create, createNonShared, createShared, createShared, newInstancepublic static final io.vertx.lang.rx.TypeArg<MailService> __TYPE_ARG
public static final String DEFAULT_POOL_NAME
public MailService(MailService delegate)
public MailService(Object 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)public 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 © 2021 Eclipse. All rights reserved.