public class VertxTcpProtocol extends AbstractProtocol
config| Constructor and Description |
|---|
VertxTcpProtocol() |
VertxTcpProtocol(Map<String,Object> config) |
VertxTcpProtocol(String resource) |
VertxTcpProtocol(io.vertx.core.Vertx vertx) |
| Modifier and Type | Method and Description |
|---|---|
VertxTcpProtocol |
copy() |
ProtocolClient |
createClient(URI uri) |
ProtocolServer |
createServer(URI uri) |
int |
getAcceptBacklog()
Returns the accept backlog.
|
int |
getConnectTimeout()
Returns the connection timeout.
|
int |
getReceiveBufferSize()
Returns the receive buffer size.
|
int |
getSendBufferSize()
Returns the send buffer size.
|
io.vertx.core.Vertx |
getVertx()
Returns the Vert.x instance.
|
boolean |
isClientAuthRequired()
Returns whether client authentication is required.
|
boolean |
isClientTrustAll()
Returns whether to trust all server certs.
|
boolean |
isSsl()
Returns a boolean indicating whether SSL encryption is enabled.
|
void |
setAcceptBacklog(int backlog)
Sets the accept backlog.
|
void |
setClientAuthRequired(boolean required)
Sets whether client authentication is required.
|
void |
setClientTrustAll(boolean trustAll)
Sets whether to trust all server certs.
|
void |
setConnectTimeout(int connectTimeout)
Sets the connection timeout.
|
void |
setReceiveBufferSize(int bufferSize)
Sets the receive buffer size.
|
void |
setSendBufferSize(int bufferSize)
Sets the send buffer size.
|
void |
setSsl(boolean useSsl)
Sets whether to use SSL encryption.
|
void |
setVertx(io.vertx.core.Vertx vertx)
Sets the Vert.x instance.
|
VertxTcpProtocol |
withAcceptBacklog(int backlog)
Sets the accept backlog, returning the protocol for method chaining.
|
VertxTcpProtocol |
withClientAuthRequired(boolean required)
Sets whether client authentication is required.
|
VertxTcpProtocol |
withClientTrustAll(boolean trustAll)
Sets whether to trust all server certs, returning the protocol for method chaining.
|
VertxTcpProtocol |
withConnectTimeout(int connectTimeout)
Sets the connection timeout, returning the protocol for method chaining.
|
VertxTcpProtocol |
withReceiveBufferSize(int bufferSize)
Sets the receive buffer size, returning the protocol for method chaining.
|
VertxTcpProtocol |
withSendBufferSize(int bufferSize)
Sets the send buffer size, returning the protocol for method chaining.
|
VertxTcpProtocol |
withSsl(boolean useSsl)
Sets whether to use SSL encryption, returning the protocol for method chaining.
|
VertxTcpProtocol |
withVertx(io.vertx.core.Vertx vertx)
Sets the Vert.x instance, returning the configuration for method chaining.
|
addResources, configure, equals, hashCode, toMap, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisValidUriconfigure, load, toMappublic VertxTcpProtocol()
public VertxTcpProtocol(io.vertx.core.Vertx vertx)
public VertxTcpProtocol(String resource)
public VertxTcpProtocol 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 VertxTcpProtocol withVertx(io.vertx.core.Vertx vertx)
vertx - The Vert.x instance.public void setSendBufferSize(int bufferSize)
bufferSize - The send buffer size.IllegalArgumentException - If the buffer size is not positivepublic int getSendBufferSize()
public VertxTcpProtocol withSendBufferSize(int bufferSize)
bufferSize - The send buffer size.IllegalArgumentException - If the buffer size is not positivepublic void setReceiveBufferSize(int bufferSize)
bufferSize - The receive buffer size.IllegalArgumentException - If the buffer size is not positivepublic int getReceiveBufferSize()
public VertxTcpProtocol withReceiveBufferSize(int bufferSize)
bufferSize - The receive buffer size.IllegalArgumentException - If the buffer size is not positivepublic void setSsl(boolean useSsl)
useSsl - Whether to use SSL encryption.public boolean isSsl()
public VertxTcpProtocol withSsl(boolean useSsl)
useSsl - Whether to use SSL encryption.public void setClientTrustAll(boolean trustAll)
trustAll - Whether to trust all server certs.public boolean isClientTrustAll()
public VertxTcpProtocol withClientTrustAll(boolean trustAll)
trustAll - Whether to trust all server certs.public void setClientAuthRequired(boolean required)
required - Whether client authentication is required.public boolean isClientAuthRequired()
public VertxTcpProtocol withClientAuthRequired(boolean required)
required - Whether client authentication is required.public void setAcceptBacklog(int backlog)
backlog - The accept backlog.IllegalArgumentException - If the accept backlog is not positivepublic int getAcceptBacklog()
public VertxTcpProtocol withAcceptBacklog(int backlog)
backlog - The accept backlog.IllegalArgumentException - If the accept backlog is not positivepublic void setConnectTimeout(int connectTimeout)
connectTimeout - The connection timeout.IllegalArgumentException - If the connect timeout is not positivepublic int getConnectTimeout()
public VertxTcpProtocol withConnectTimeout(int connectTimeout)
connectTimeout - The connection timeout.IllegalArgumentException - If the connect timeout is not positivepublic ProtocolServer createServer(URI uri)
public ProtocolClient createClient(URI uri)
Copyright © 2013-2015. All Rights Reserved.