public final class HAProxyMessage
extends io.netty.util.AbstractReferenceCounted
Constructor and Description |
---|
HAProxyMessage(HAProxyProtocolVersion protocolVersion,
HAProxyCommand command,
HAProxyProxiedProtocol proxiedProtocol,
String sourceAddress,
String destinationAddress,
int sourcePort,
int destinationPort)
Creates a new instance of HAProxyMessage.
|
HAProxyMessage(HAProxyProtocolVersion protocolVersion,
HAProxyCommand command,
HAProxyProxiedProtocol proxiedProtocol,
String sourceAddress,
String destinationAddress,
int sourcePort,
int destinationPort,
List<? extends HAProxyTLV> tlvs)
Creates a new instance of HAProxyMessage.
|
Modifier and Type | Method and Description |
---|---|
HAProxyCommand |
command()
Returns the
HAProxyCommand of this HAProxyMessage . |
protected void |
deallocate() |
String |
destinationAddress()
Returns the human-readable destination address of this
HAProxyMessage . |
int |
destinationPort()
Returns the UDP/TCP destination port of this
HAProxyMessage . |
HAProxyProtocolVersion |
protocolVersion()
Returns the
HAProxyProtocolVersion of this HAProxyMessage . |
HAProxyProxiedProtocol |
proxiedProtocol()
Returns the
HAProxyProxiedProtocol of this HAProxyMessage . |
boolean |
release() |
boolean |
release(int decrement) |
HAProxyMessage |
retain() |
HAProxyMessage |
retain(int increment) |
String |
sourceAddress()
Returns the human-readable source address of this
HAProxyMessage . |
int |
sourcePort()
Returns the UDP/TCP source port of this
HAProxyMessage . |
List<HAProxyTLV> |
tlvs()
Returns a list of
HAProxyTLV or an empty list if no TLVs are present. |
String |
toString() |
HAProxyMessage |
touch() |
HAProxyMessage |
touch(Object hint) |
public HAProxyMessage(HAProxyProtocolVersion protocolVersion, HAProxyCommand command, HAProxyProxiedProtocol proxiedProtocol, String sourceAddress, String destinationAddress, int sourcePort, int destinationPort)
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.public HAProxyMessage(HAProxyProtocolVersion protocolVersion, HAProxyCommand command, HAProxyProxiedProtocol proxiedProtocol, String sourceAddress, String destinationAddress, int sourcePort, int destinationPort, List<? extends HAProxyTLV> tlvs)
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.public HAProxyProtocolVersion protocolVersion()
HAProxyProtocolVersion
of this HAProxyMessage
.public HAProxyCommand command()
HAProxyCommand
of this HAProxyMessage
.public HAProxyProxiedProtocol proxiedProtocol()
HAProxyProxiedProtocol
of this HAProxyMessage
.public String sourceAddress()
HAProxyMessage
.public String destinationAddress()
HAProxyMessage
.public int sourcePort()
HAProxyMessage
.public int destinationPort()
HAProxyMessage
.public List<HAProxyTLV> tlvs()
HAProxyTLV
or an empty list if no TLVs are present.
TLVs are only available for the Proxy Protocol V2
public HAProxyMessage touch()
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.util.AbstractReferenceCounted
public HAProxyMessage touch(Object hint)
public HAProxyMessage retain()
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.util.AbstractReferenceCounted
public HAProxyMessage retain(int increment)
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.util.AbstractReferenceCounted
public boolean release()
release
in interface io.netty.util.ReferenceCounted
release
in class io.netty.util.AbstractReferenceCounted
public boolean release(int decrement)
release
in interface io.netty.util.ReferenceCounted
release
in class io.netty.util.AbstractReferenceCounted
protected void deallocate()
deallocate
in class io.netty.util.AbstractReferenceCounted
Copyright © 2008–2021 The Netty Project. All rights reserved.