public final class SctpMessage extends DefaultByteBufHolder
Constructor and Description |
---|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
SctpMessage(com.sun.nio.sctp.MessageInfo msgInfo,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
Modifier and Type | Method and Description |
---|---|
SctpMessage |
copy()
Create a deep copy of this
ByteBufHolder . |
SctpMessage |
duplicate()
Duplicate the
ByteBufHolder . |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isComplete()
Return
true if this message is complete. |
com.sun.nio.sctp.MessageInfo |
messageInfo()
Return the
MessageInfo for inbound messages or null for
outbound messages. |
int |
protocolIdentifier()
Return the protocol-identifier
|
SctpMessage |
retain()
Increases the reference count by
1 . |
SctpMessage |
retain(int increment)
Increases the reference count by the specified
increment . |
int |
streamIdentifier()
Return the stream-identifier
|
String |
toString() |
SctpMessage |
touch()
Records the current access location of this object for debugging purposes.
|
SctpMessage |
touch(Object hint)
Records the current access location of this object with an additonal arbitrary information for debugging
purposes.
|
content, refCnt, release, release
public SctpMessage(int protocolIdentifier, int streamIdentifier, ByteBuf payloadBuffer)
protocolIdentifier
- of payloadstreamIdentifier
- that you want to send the payloadpayloadBuffer
- channel bufferpublic SctpMessage(com.sun.nio.sctp.MessageInfo msgInfo, ByteBuf payloadBuffer)
msgInfo
- the MessageInfo
payloadBuffer
- channel bufferpublic int streamIdentifier()
public int protocolIdentifier()
public com.sun.nio.sctp.MessageInfo messageInfo()
MessageInfo
for inbound messages or null
for
outbound messages.public boolean isComplete()
true
if this message is complete.public SctpMessage copy()
ByteBufHolder
ByteBufHolder
.copy
in interface ByteBufHolder
copy
in class DefaultByteBufHolder
public SctpMessage duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
in interface ByteBufHolder
duplicate
in class DefaultByteBufHolder
public SctpMessage retain()
ReferenceCounted
1
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public SctpMessage retain(int increment)
ReferenceCounted
increment
.retain
in interface ByteBufHolder
retain
in interface ReferenceCounted
retain
in class DefaultByteBufHolder
public SctpMessage touch()
ReferenceCounted
ResourceLeakDetector
. This method is a shortcut to touch(null)
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public SctpMessage touch(Object hint)
ReferenceCounted
ResourceLeakDetector
.touch
in interface ByteBufHolder
touch
in interface ReferenceCounted
touch
in class DefaultByteBufHolder
public String toString()
toString
in class DefaultByteBufHolder
Copyright © 2008–2015 The Netty Project. All rights reserved.