public class VertxEventBusProtocol extends AbstractProtocol
config| Constructor and Description |
|---|
VertxEventBusProtocol() |
VertxEventBusProtocol(Map<String,Object> config) |
VertxEventBusProtocol(String resource) |
VertxEventBusProtocol(String host,
int port) |
VertxEventBusProtocol(io.vertx.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
VertxEventBusProtocol |
copy() |
ProtocolClient |
createClient(URI uri) |
ProtocolServer |
createServer(URI uri) |
String |
getHost()
Returns the Vert.x host.
|
int |
getPort()
Returns the Vert.x port.
|
io.vertx.core.Vertx |
getVertx()
Returns the Vert.x instance.
|
void |
setHost(String host)
Sets the Vert.x host.
|
void |
setPort(int port)
Sets the Vert.x port.
|
void |
setVertx(io.vertx.core.Vertx vertx)
Sets the Vert.x instance.
|
String |
toString() |
VertxEventBusProtocol |
withHost(String host)
Sets the Vert.x host, returning the event bus protocol for method chaining.
|
VertxEventBusProtocol |
withPort(int port)
Sets the Vert.x port, returning the protocol for method chaining.
|
VertxEventBusProtocol |
withVertx(io.vertx.core.Vertx vertx)
Sets the Vert.x instance, returning the protocol for method chaining.
|
addResources, configure, equals, hashCode, toMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitisValidUriconfigure, load, toMappublic VertxEventBusProtocol()
public VertxEventBusProtocol(String resource)
public VertxEventBusProtocol(String host, int port)
public VertxEventBusProtocol(io.vertx.core.Vertx vertx)
public VertxEventBusProtocol copy()
copy in interface Copyable<Configurable>copy in class AbstractConfigurablepublic void setVertx(io.vertx.core.Vertx vertx)
vertx - The Vert.x instance.public io.vertx.core.Vertx getVertx()
public VertxEventBusProtocol withVertx(io.vertx.core.Vertx vertx)
vertx - The Vert.x instance.public void setHost(String host)
host - The Vert.x host.NullPointerException - If the host is nullpublic String getHost()
public VertxEventBusProtocol withHost(String host)
host - The Vert.x host.public void setPort(int port)
port - The Vert.x port.public int getPort()
public VertxEventBusProtocol withPort(int port)
port - The Vert.x port.public ProtocolServer createServer(URI uri)
public ProtocolClient createClient(URI uri)
public String toString()
toString in class AbstractConfigurableCopyright © 2013-2015. All Rights Reserved.