public class MailServiceVertxProxyHandler extends ProxyHandler
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CONNECTION_TIMEOUT |
closed, consumer
Constructor and Description |
---|
MailServiceVertxProxyHandler(Vertx vertx,
MailService service) |
MailServiceVertxProxyHandler(Vertx vertx,
MailService service,
boolean topLevel,
long timeoutSeconds) |
MailServiceVertxProxyHandler(Vertx vertx,
MailService service,
long timeoutInSecond) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
handle(Message<JsonObject> msg)
Something has happened, so handle it.
|
MessageConsumer<JsonObject> |
registerHandler(String address)
Register the proxy handle on the event bus.
|
setConsumer
public static final long DEFAULT_CONNECTION_TIMEOUT
public MailServiceVertxProxyHandler(Vertx vertx, MailService service)
public MailServiceVertxProxyHandler(Vertx vertx, MailService service, long timeoutInSecond)
public MailServiceVertxProxyHandler(Vertx vertx, MailService service, boolean topLevel, long timeoutSeconds)
public MessageConsumer<JsonObject> registerHandler(String address)
ProxyHandler
registerHandler
in class ProxyHandler
address
- the proxy addresspublic void close()
close
in class ProxyHandler
public void handle(Message<JsonObject> msg)
Handler
msg
- the event to handleCopyright © 2016. All rights reserved.