Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetClientOptions

Options for configuring a NetClient.

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

addCrlPath

addCrlValue

addEnabledCipherSuite

addEnabledSecureTransportProtocol

  • addEnabledSecureTransportProtocol(enabledSecureTransportProtocols: string): NetClientOptions

addNonProxyHost

  • Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

    Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.

    Parameters

    • nonProxyHosts: string

    Returns NetClientOptions

getActivityLogDataFormat

  • getActivityLogDataFormat(): any
  • Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.

    Returns any

getApplicationLayerProtocols

  • getApplicationLayerProtocols(): string[]
  • Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation.

    Returns string[]

getConnectTimeout

  • getConnectTimeout(): number

getCrlPaths

  • getCrlPaths(): string[]
  • Add a CRL path

    Returns string[]

getCrlValues

getEnabledCipherSuites

  • getEnabledCipherSuites(): string[]
  • Add an enabled cipher suite, appended to the ordered suites.

    Returns string[]

getEnabledSecureTransportProtocols

  • getEnabledSecureTransportProtocols(): string[]

getHostnameVerificationAlgorithm

  • getHostnameVerificationAlgorithm(): string
  • Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String

    Returns string

getIdleTimeout

  • getIdleTimeout(): number
  • Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout.

    If you want change default time unit, use NetClientOptions

    Returns number

getIdleTimeoutUnit

  • getIdleTimeoutUnit(): any
  • Set the idle timeout unit. If not specified, default is seconds.

    Returns any

getJdkSslEngineOptions

getKeyStoreOptions

getLocalAddress

  • getLocalAddress(): string
  • Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.

    Returns string

getLogActivity

  • getLogActivity(): boolean
  • Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

    Returns boolean

getMetricsName

  • getMetricsName(): string
  • Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.

    Returns string

getNonProxyHosts

  • getNonProxyHosts(): string[]
  • Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

    Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.

    Returns string[]

getOpenSslEngineOptions

getPemKeyCertOptions

getPemTrustOptions

getPfxKeyCertOptions

getPfxTrustOptions

getProxyOptions

getReadIdleTimeout

  • getReadIdleTimeout(): number
  • Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout.

    If you want change default time unit, use NetClientOptions

    Returns number

getReceiveBufferSize

  • getReceiveBufferSize(): number

getReconnectAttempts

  • getReconnectAttempts(): number
  • Set the value of reconnect attempts

    Returns number

getReconnectInterval

  • getReconnectInterval(): number
  • Set the reconnect interval

    Returns number

getSendBufferSize

  • getSendBufferSize(): number

getSoLinger

  • getSoLinger(): number
  • Set whether SO_linger keep alive is enabled

    Returns number

getSslEngineOptions

getSslHandshakeTimeout

  • getSslHandshakeTimeout(): number
  • Set the SSL handshake timeout, default time unit is seconds.

    Returns number

getSslHandshakeTimeoutUnit

  • getSslHandshakeTimeoutUnit(): any

getTcpUserTimeout

  • getTcpUserTimeout(): number
  • Sets the TCP_USER_TIMEOUT option - only with linux native transport.

    Returns number

getTrafficClass

  • getTrafficClass(): number
  • Set the value of traffic class

    Returns number

getTrustOptions

getTrustStoreOptions

getWriteIdleTimeout

  • getWriteIdleTimeout(): number
  • Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout.

    If you want change default time unit, use NetClientOptions

    Returns number

isRegisterWriteHandler

  • isRegisterWriteHandler(): boolean
  • Whether a write-handler should be registered on the EventBus.

    Defaults to false.

    Returns boolean

isReuseAddress

  • isReuseAddress(): boolean
  • Set the value of reuse address

    Returns boolean

isReusePort

  • isReusePort(): boolean
  • Set the value of reuse port.

    This is only supported by native transports.

    Returns boolean

isSsl

  • isSsl(): boolean
  • Set whether SSL/TLS is enabled

    Returns boolean

isTcpCork

  • isTcpCork(): boolean
  • Enable the TCP_CORK option - only with linux native transport.

    Returns boolean

isTcpFastOpen

  • isTcpFastOpen(): boolean
  • Enable the TCP_FASTOPEN option - only with linux native transport.

    Returns boolean

isTcpKeepAlive

  • isTcpKeepAlive(): boolean
  • Set whether TCP keep alive is enabled

    Returns boolean

isTcpNoDelay

  • isTcpNoDelay(): boolean
  • Set whether TCP no delay is enabled

    Returns boolean

isTcpQuickAck

  • isTcpQuickAck(): boolean
  • Enable the TCP_QUICKACK option - only with linux native transport.

    Returns boolean

isTrustAll

  • isTrustAll(): boolean
  • Set whether all server certificates should be trusted

    Returns boolean

isUseAlpn

  • isUseAlpn(): boolean
  • Set the ALPN usage.

    Returns boolean

setActivityLogDataFormat

  • Set the value of Netty's logging handler's data format: Netty's pipeline is configured for logging on Netty's logger.

    Parameters

    • activityLogDataFormat: any

    Returns NetClientOptions

setApplicationLayerProtocols

  • setApplicationLayerProtocols(applicationLayerProtocols: string[]): NetClientOptions
  • Set the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation.

    Parameters

    • applicationLayerProtocols: string[]

    Returns NetClientOptions

setConnectTimeout

setEnabledSecureTransportProtocols

  • setEnabledSecureTransportProtocols(enabledSecureTransportProtocols: string[]): NetClientOptions

setHostnameVerificationAlgorithm

  • setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm: string): NetClientOptions
  • Set the hostname verification algorithm interval To disable hostname verification, set hostnameVerificationAlgorithm to an empty String

    Parameters

    • hostnameVerificationAlgorithm: string

    Returns NetClientOptions

setIdleTimeout

  • Set the idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received nor sent within the timeout.

    If you want change default time unit, use NetClientOptions

    Parameters

    • idleTimeout: number

    Returns NetClientOptions

setIdleTimeoutUnit

setJdkSslEngineOptions

setKeyCertOptions

setKeyStoreOptions

setLocalAddress

  • Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.

    Parameters

    • localAddress: string

    Returns NetClientOptions

setLogActivity

  • Set to true to enabled network activity logging: Netty's pipeline is configured for logging on Netty's logger.

    Parameters

    • logActivity: boolean

    Returns NetClientOptions

setMetricsName

  • Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.

    Parameters

    • metricsName: string

    Returns NetClientOptions

setNonProxyHosts

  • Set a list of remote hosts that are not proxied when the client is configured to use a proxy. This list serves the same purpose than the JVM nonProxyHosts configuration.

    Entries can use the * wildcard character for pattern matching, e.g *.example.com matches www.example.com.

    Parameters

    • nonProxyHosts: string[]

    Returns NetClientOptions

setOpenSslEngineOptions

setPemKeyCertOptions

setPemTrustOptions

setPfxKeyCertOptions

setPfxTrustOptions

setProxyOptions

setReadIdleTimeout

  • Set the read idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is received within the timeout.

    If you want change default time unit, use NetClientOptions

    Parameters

    • readIdleTimeout: number

    Returns NetClientOptions

setReceiveBufferSize

setReconnectAttempts

  • Set the value of reconnect attempts

    Parameters

    • reconnectAttempts: number

    Returns NetClientOptions

setReconnectInterval

  • Set the reconnect interval

    Parameters

    • reconnectInterval: number

    Returns NetClientOptions

setRegisterWriteHandler

  • Whether a write-handler should be registered on the EventBus.

    Defaults to false.

    Parameters

    • registerWriteHandler: boolean

    Returns NetClientOptions

setReuseAddress

setReusePort

  • Set the value of reuse port.

    This is only supported by native transports.

    Parameters

    • reusePort: boolean

    Returns NetClientOptions

setSendBufferSize

setSoLinger

setSsl

setSslEngineOptions

setSslHandshakeTimeout

setSslHandshakeTimeoutUnit

setTcpCork

  • Enable the TCP_CORK option - only with linux native transport.

    Parameters

    • tcpCork: boolean

    Returns NetClientOptions

setTcpFastOpen

  • Enable the TCP_FASTOPEN option - only with linux native transport.

    Parameters

    • tcpFastOpen: boolean

    Returns NetClientOptions

setTcpKeepAlive

setTcpNoDelay

setTcpQuickAck

  • Enable the TCP_QUICKACK option - only with linux native transport.

    Parameters

    • tcpQuickAck: boolean

    Returns NetClientOptions

setTcpUserTimeout

setTrafficClass

setTrustAll

setTrustOptions

setTrustStoreOptions

setUseAlpn

setWriteIdleTimeout

  • Set the write idle timeout, default time unit is seconds. Zero means don't timeout. This determines if a connection will timeout and be closed if no data is sent within the timeout.

    If you want change default time unit, use NetClientOptions

    Parameters

    • writeIdleTimeout: number

    Returns NetClientOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc