public final class HAProxyMessage extends AbstractReferenceCounted
| Modifier and Type | Method and Description |
|---|---|
HAProxyCommand |
command()
Returns the
HAProxyCommand of this HAProxyMessage. |
protected void |
deallocate()
Called once
AbstractReferenceCounted.refCnt() is equals 0. |
java.lang.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()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
HAProxyMessage |
retain()
Increases the reference count by
1. |
HAProxyMessage |
retain(int increment)
Increases the reference count by the specified
increment. |
java.lang.String |
sourceAddress()
Returns the human-readable source address of this
HAProxyMessage. |
int |
sourcePort()
Returns the UDP/TCP source port of this
HAProxyMessage. |
java.util.List<HAProxyTLV> |
tlvs()
Returns a list of
HAProxyTLV or an empty list if no TLVs are present. |
HAProxyMessage |
touch()
Records the current access location of this object for debugging purposes.
|
HAProxyMessage |
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
refCnt, setRefCntpublic HAProxyProtocolVersion protocolVersion()
HAProxyProtocolVersion of this HAProxyMessage.public HAProxyCommand command()
HAProxyCommand of this HAProxyMessage.public HAProxyProxiedProtocol proxiedProtocol()
HAProxyProxiedProtocol of this HAProxyMessage.public java.lang.String sourceAddress()
HAProxyMessage.public java.lang.String destinationAddress()
HAProxyMessage.public int sourcePort()
HAProxyMessage.public int destinationPort()
HAProxyMessage.public java.util.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()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ReferenceCountedtouch in class AbstractReferenceCountedpublic HAProxyMessage touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.public HAProxyMessage retain()
ReferenceCounted1.retain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic HAProxyMessage retain(int increment)
ReferenceCountedincrement.retain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.release in interface ReferenceCountedrelease in class AbstractReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.release in interface ReferenceCountedrelease in class AbstractReferenceCountedtrue if and only if the reference count became 0 and this object has been deallocatedprotected void deallocate()
AbstractReferenceCountedAbstractReferenceCounted.refCnt() is equals 0.deallocate in class AbstractReferenceCountedCopyright © 2008–2019 The Netty Project. All rights reserved.