public class EtcdNettyConfig
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
EtcdNettyConfig()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
EtcdNettyConfig |
clone() |
int |
getConnectTimeout()
Get the connect timeout
|
io.netty.channel.EventLoopGroup |
getEventLoopGroup()
Get the current event loop group.
|
java.lang.String |
getHostName()
Get the local host name
|
int |
getMaxFrameSize()
Get the max frame size
|
java.lang.Class<? extends io.netty.channel.socket.SocketChannel> |
getSocketChannelClass()
Get Socket channel class
|
boolean |
hasHostName() |
EtcdNettyConfig |
setConnectTimeout(int connectTimeout)
Set the connect timeout
|
EtcdNettyConfig |
setEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Set a custom event loop group.
|
EtcdNettyConfig |
setHostName(java.lang.String hostName)
Set the host name for the local machine.
|
EtcdNettyConfig |
setMaxFrameSize(int maxFrameSize)
Set the max frame size
|
EtcdNettyConfig |
setSocketChannelClass(java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass)
Set Socket channel class.
|
public int getConnectTimeout()
public EtcdNettyConfig setConnectTimeout(int connectTimeout)
connectTimeout - to setpublic EtcdNettyConfig setEventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
eventLoopGroup - to set.public io.netty.channel.EventLoopGroup getEventLoopGroup()
public int getMaxFrameSize()
public EtcdNettyConfig setMaxFrameSize(int maxFrameSize)
maxFrameSize - to setpublic java.lang.Class<? extends io.netty.channel.socket.SocketChannel> getSocketChannelClass()
public EtcdNettyConfig setSocketChannelClass(java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass)
socketChannelClass - to setpublic boolean hasHostName()
public java.lang.String getHostName()
public EtcdNettyConfig setHostName(java.lang.String hostName)
hostName - name of local hostpublic EtcdNettyConfig clone()
clone in class java.lang.Object