public final class Connector
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Connector.ConnectorType
An enum represents type of connector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Cleans up the left over resources.
|
boolean |
equals(java.lang.Object o) |
java.lang.Class<? extends io.netty.channel.Channel> |
getClientChannel()
Returns the client channel class.
|
java.lang.Class<? extends io.netty.channel.ServerChannel> |
getServerChannel()
Returns the server channel class.
|
java.net.SocketAddress |
getSocketAddress()
Returns the TCP socket listening address.
|
java.lang.String |
getSocketPath()
Returns the unix domain socket path.
|
java.lang.String |
getSocketType()
Returns the socket type.
|
Connector.ConnectorType |
getType()
Returns the type of the connector.
|
int |
hashCode() |
boolean |
isSsl()
Return if the connector requires SSL.
|
boolean |
isUds()
Returns if the connector is using unix domain socket.
|
static io.netty.channel.EventLoopGroup |
newEventLoopGroup(int threads)
Creates a new netty
EventLoopGroup. |
static Connector |
parse(java.lang.String binding,
Connector.ConnectorType connectorType)
Create a
Connector instance based on binding string. |
java.lang.String |
toString() |
public static Connector parse(java.lang.String binding, Connector.ConnectorType connectorType)
Connector instance based on binding string.binding - the binding stringconnectorType - the type of the connectorConnector instancepublic java.lang.String getSocketType()
public boolean isUds()
true if the connector is using unix domain socketpublic boolean isSsl()
true if the connector requires SSLpublic java.lang.String getSocketPath()
public java.net.SocketAddress getSocketAddress()
public Connector.ConnectorType getType()
public static io.netty.channel.EventLoopGroup newEventLoopGroup(int threads)
EventLoopGroup.threads - the number of threadsEventLoopGrouppublic java.lang.Class<? extends io.netty.channel.ServerChannel> getServerChannel()
public java.lang.Class<? extends io.netty.channel.Channel> getClientChannel()
public void clean()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object