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() |
create, retain, retainrefCnt, release, release, setRefCntclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataUtf8, getMetadata, getMetadataUtf8refCnt, release, releasepublic DefaultConnectionSetupPayload(ByteBuf setupFrame)
public boolean hasMetadata()
Payloadpublic ByteBuf sliceMetadata()
PayloadPayload.hasMetadata() to
differentiate null from "".public ByteBuf sliceData()
Payloadpublic ByteBuf data()
Payloadpublic ByteBuf metadata()
Payloadpublic String metadataMimeType()
metadataMimeType in class ConnectionSetupPayloadpublic String dataMimeType()
dataMimeType in class ConnectionSetupPayloadpublic int keepAliveInterval()
keepAliveInterval in class ConnectionSetupPayloadpublic int keepAliveMaxLifetime()
keepAliveMaxLifetime in class ConnectionSetupPayloadpublic int getFlags()
getFlags in class ConnectionSetupPayloadpublic boolean willClientHonorLease()
willClientHonorLease in class ConnectionSetupPayloadpublic boolean isResumeEnabled()
isResumeEnabled in class ConnectionSetupPayloadpublic ByteBuf resumeToken()
resumeToken in class ConnectionSetupPayloadpublic ConnectionSetupPayload touch()
PayloadResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ReferenceCountedtouch in interface Payloadtouch in class ConnectionSetupPayloadpublic ConnectionSetupPayload touch(Object hint)
PayloadResourceLeakDetector.protected void deallocate()
deallocate in class AbstractReferenceCounted