@Immutable public class TcpListener extends Object implements Listener
| Constructor and Description |
|---|
TcpListener(int port,
String bindAddress)
Creates a new TCP listener which listens to a specific port and bind address
|
TcpListener(int port,
String bindAddress,
boolean proxyProtocolSupported)
Creates a new TCP listener which listens to a specific port, bind address and proxy setting
|
TcpListener(int port,
String bindAddress,
boolean proxyProtocolSupported,
SocketOptionsProperties socketOptionsProperties,
ConnectOverloadProtectionProperties connectOverloadProtectionProperties,
ClientWriteBufferProperties clientWriteBufferProperties)
Creates a new TCP listener which listens to a specific port, bind address, proxy setting, socket options, overload protection and write buffer properties
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBindAddress() |
com.google.common.base.Optional<ClientWriteBufferProperties> |
getClientWriteBufferProperties() |
com.google.common.base.Optional<ConnectOverloadProtectionProperties> |
getConnectOverloadProtectionProperties() |
int |
getPort() |
com.google.common.base.Optional<SocketOptionsProperties> |
getSocketOptionsProperties() |
boolean |
isProxyProtocolSupported() |
String |
readableName() |
public TcpListener(int port,
@NotNull
String bindAddress)
port - the portbindAddress - the bind addresspublic TcpListener(int port,
@NotNull
String bindAddress,
boolean proxyProtocolSupported)
port - the portbindAddress - the bind addressproxyProtocolSupported - if this listener should be able to utilize the PROXY protocolpublic TcpListener(int port,
@NotNull
String bindAddress,
boolean proxyProtocolSupported,
@Nullable
SocketOptionsProperties socketOptionsProperties,
@Nullable
ConnectOverloadProtectionProperties connectOverloadProtectionProperties,
@Nullable
ClientWriteBufferProperties clientWriteBufferProperties)
port - the portbindAddress - the bind addressproxyProtocolSupported - if this listener should be able to utilize the PROXY protocolsocketOptionsProperties - a configuration of SocketOptionsProperties for this listener or null to use the defaultconnectOverloadProtectionProperties - a configuration of ConnectOverloadProtectionProperties for this listener or null to deactivate connect overload protectionclientWriteBufferProperties - a configuration of ClientWriteBufferProperties for this listener or null to use the defaultpublic int getPort()
public String getBindAddress()
getBindAddress in interface Listenerpublic String readableName()
readableName in interface Listenerpublic boolean isProxyProtocolSupported()
isProxyProtocolSupported in interface Listenerpublic com.google.common.base.Optional<SocketOptionsProperties> getSocketOptionsProperties()
getSocketOptionsProperties in interface ListenerOptional of SocketOptionsProperties of this listenerpublic com.google.common.base.Optional<ConnectOverloadProtectionProperties> getConnectOverloadProtectionProperties()
getConnectOverloadProtectionProperties in interface ListenerOptional of ConnectOverloadProtectionProperties of this listenerpublic com.google.common.base.Optional<ClientWriteBufferProperties> getClientWriteBufferProperties()
getClientWriteBufferProperties in interface ListenerOptional of ClientWriteBufferProperties of this listenerCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.