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 |
static String |
DEFAULT_POOL_NAME
The name of the default pool
|
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) |
io.reactivex.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() |
createNonShared, createShared, createShared, newInstance
public static final TypeArg<MailService> __TYPE_ARG
public static final String DEFAULT_POOL_NAME
public MailService(MailService delegate)
public String toString()
toString
in class MailClient
public boolean equals(Object o)
equals
in class MailClient
public int hashCode()
hashCode
in class MailClient
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 io.reactivex.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 © 2018 Eclipse. All rights reserved.