Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NetworkOptions

Hierarchy

Index

Constructors

constructor

  • Returns NetworkOptions

  • Parameters

    Returns NetworkOptions

Methods

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

getLogActivity

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

    Returns boolean

getReceiveBufferSize

  • getReceiveBufferSize(): number
  • Set the TCP receive buffer size

    Returns number

getSendBufferSize

  • getSendBufferSize(): number
  • Set the TCP send buffer size

    Returns number

getTrafficClass

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

    Returns number

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

setActivityLogDataFormat

  • setActivityLogDataFormat(activityLogDataFormat: any): NetworkOptions
  • 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 NetworkOptions

setLogActivity

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

    Parameters

    • logActivity: boolean

    Returns NetworkOptions

setReceiveBufferSize

  • Set the TCP receive buffer size

    Parameters

    • receiveBufferSize: number

    Returns NetworkOptions

setReuseAddress

  • Set the value of reuse address

    Parameters

    • reuseAddress: boolean

    Returns NetworkOptions

setReusePort

  • Set the value of reuse port.

    This is only supported by native transports.

    Parameters

    • reusePort: boolean

    Returns NetworkOptions

setSendBufferSize

  • Set the TCP send buffer size

    Parameters

    • sendBufferSize: number

    Returns NetworkOptions

setTrafficClass

  • Set the value of traffic class

    Parameters

    • trafficClass: number

    Returns NetworkOptions

toJson

  • toJson(): {}
  • Returns {}

    • [key: string]: any

Generated using TypeDoc