public class DefaultConnectionSetupPayload extends ConnectionSetupPayload
ConnectionSetupPayload
. Primarily for internal use within
RSocket Java but may be created in an application, e.g. for testing purposes.Constructor and Description |
---|
DefaultConnectionSetupPayload(ByteBuf setupFrame) |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
data()
Returns the Payloads' data without slicing if possible.
|
String |
dataMimeType() |
protected void |
deallocate() |
int |
getFlags() |
boolean |
hasMetadata()
Returns whether the payload has metadata, useful for tell if metadata is empty or not present.
|
boolean |
isResumeEnabled() |
int |
keepAliveInterval() |
int |
keepAliveMaxLifetime() |
ByteBuf |
metadata()
Returns the Payloads' metadata without slicing if possible.
|
String |
metadataMimeType() |
ByteBuf |
resumeToken() |
ByteBuf |
sliceData()
Returns the Payload data.
|
ByteBuf |
sliceMetadata()
Returns a slice Payload metadata.
|
ConnectionSetupPayload |
touch()
Records the current access location of this object for debugging purposes.
|
ConnectionSetupPayload |
touch(Object hint)
Records the current access location of this object with an additional arbitrary information for
debugging purposes.
|
boolean |
willClientHonorLease() |
retain, retain
refCnt, release, release, setRefCnt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getData, getDataUtf8, getMetadata, getMetadataUtf8
refCnt, release, release
public DefaultConnectionSetupPayload(ByteBuf setupFrame)
public boolean hasMetadata()
Payload
public ByteBuf sliceMetadata()
Payload
Payload.hasMetadata()
to
differentiate null from "".public ByteBuf sliceData()
Payload
public ByteBuf data()
Payload
public ByteBuf metadata()
Payload
public String metadataMimeType()
metadataMimeType
in class ConnectionSetupPayload
public String dataMimeType()
dataMimeType
in class ConnectionSetupPayload
public int keepAliveInterval()
keepAliveInterval
in class ConnectionSetupPayload
public int keepAliveMaxLifetime()
keepAliveMaxLifetime
in class ConnectionSetupPayload
public int getFlags()
getFlags
in class ConnectionSetupPayload
public boolean willClientHonorLease()
willClientHonorLease
in class ConnectionSetupPayload
public boolean isResumeEnabled()
isResumeEnabled
in class ConnectionSetupPayload
public ByteBuf resumeToken()
resumeToken
in class ConnectionSetupPayload
public ConnectionSetupPayload touch()
Payload
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ReferenceCounted
touch
in interface Payload
touch
in class ConnectionSetupPayload
public ConnectionSetupPayload touch(Object hint)
Payload
ResourceLeakDetector
.protected void deallocate()
deallocate
in class AbstractReferenceCounted