Class HAProxyMessage

    • Constructor Detail

      • HAProxyMessage

        public HAProxyMessage​(HAProxyProtocolVersion protocolVersion,
                              HAProxyCommand command,
                              HAProxyProxiedProtocol proxiedProtocol,
                              java.lang.String sourceAddress,
                              java.lang.String destinationAddress,
                              int sourcePort,
                              int destinationPort)
        Creates a new instance of HAProxyMessage.
        Parameters:
        protocolVersion - the protocol version.
        command - the command.
        proxiedProtocol - the protocol containing the address family and transport protocol.
        sourceAddress - the source address.
        destinationAddress - the destination address.
        sourcePort - the source port. This value must be 0 for unix, unspec addresses.
        destinationPort - the destination port. This value must be 0 for unix, unspec addresses.
      • HAProxyMessage

        public HAProxyMessage​(HAProxyProtocolVersion protocolVersion,
                              HAProxyCommand command,
                              HAProxyProxiedProtocol proxiedProtocol,
                              java.lang.String sourceAddress,
                              java.lang.String destinationAddress,
                              int sourcePort,
                              int destinationPort,
                              java.util.List<? extends HAProxyTLV> tlvs)
        Creates a new instance of HAProxyMessage.
        Parameters:
        protocolVersion - the protocol version.
        command - the command.
        proxiedProtocol - the protocol containing the address family and transport protocol.
        sourceAddress - the source address.
        destinationAddress - the destination address.
        sourcePort - the source port. This value must be 0 for unix, unspec addresses.
        destinationPort - the destination port. This value must be 0 for unix, unspec addresses.
        tlvs - the list of tlvs.