public final class RntbdResponse extends Object implements io.netty.util.ReferenceCounted
| Constructor and Description |
|---|
RntbdResponse(UUID activityId,
int statusCode,
Map<String,String> map,
io.netty.buffer.ByteBuf content) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.buffer.ByteBuf out) |
UUID |
getActivityId() |
io.netty.buffer.ByteBuf |
getContent() |
<T> T |
getHeader(RntbdConstants.RntbdResponseHeader header) |
com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdResponseHeaders |
getHeaders() |
io.netty.handler.codec.http.HttpResponseStatus |
getStatus() |
Long |
getTransportRequestId() |
boolean |
hasPayload() |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocate this object if the reference count reaches 0 |
boolean |
release(int decrement)
Decreases the reference count by
decrement and de-allocates this object if the reference count reaches 0 |
io.netty.util.ReferenceCounted |
retain()
Increases the reference count by
1. |
io.netty.util.ReferenceCounted |
retain(int increment)
Increases the reference count by the specified
increment. |
String |
toString() |
io.netty.util.ReferenceCounted |
touch()
Records the current access location of this object for debugging purposes
|
io.netty.util.ReferenceCounted |
touch(Object hint)
Records the current access location of this object with additional arbitrary information for debugging purposes
|
public UUID getActivityId()
public io.netty.buffer.ByteBuf getContent()
public com.microsoft.azure.cosmosdb.internal.directconnectivity.rntbd.RntbdResponseHeaders getHeaders()
public io.netty.handler.codec.http.HttpResponseStatus getStatus()
public Long getTransportRequestId()
public void encode(io.netty.buffer.ByteBuf out)
public <T> T getHeader(RntbdConstants.RntbdResponseHeader header)
public boolean hasPayload()
public int refCnt()
0, it means this object has been deallocated.refCnt in interface io.netty.util.ReferenceCountedpublic boolean release()
1 and deallocate this object if the reference count reaches 0release in interface io.netty.util.ReferenceCountedtrue if and only if the reference count became 0 and this object is de-allocatedpublic boolean release(int decrement)
decrement and de-allocates this object if the reference count reaches 0release in interface io.netty.util.ReferenceCounteddecrement - amount of the decreasetrue if and only if the reference count became 0 and this object has been de-allocatedpublic io.netty.util.ReferenceCounted retain()
1.retain in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted retain(int increment)
increment.retain in interface io.netty.util.ReferenceCountedincrement - amount of the increasepublic io.netty.util.ReferenceCounted touch()
If this object is determined to be leaked, the information recorded by this operation will be provided to you
via ResourceLeakDetector. This method is a shortcut to touch(null).
touch in interface io.netty.util.ReferenceCountedpublic io.netty.util.ReferenceCounted touch(Object hint)
If this object is determined to be leaked, the information recorded by this operation will be
provided to you via ResourceLeakDetector.
touch in interface io.netty.util.ReferenceCountedhint - information useful for debugging (unused)Copyright © 2019. All rights reserved.