public final class SctpMessage extends DefaultByteBufHolder
| Constructor and Description |
|---|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
boolean unordered,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
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()
Creates a deep copy of this
ByteBufHolder. |
SctpMessage |
duplicate()
Duplicates this
ByteBufHolder. |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isComplete()
Return
true if this message is complete. |
boolean |
isUnordered()
return the unordered flag
|
com.sun.nio.sctp.MessageInfo |
messageInfo()
Return the
MessageInfo for inbound messages or null for
outbound messages. |
int |
protocolIdentifier()
Return the protocol-identifier
|
SctpMessage |
replace(ByteBuf content)
Returns a new
ByteBufHolder which contains the specified content. |
SctpMessage |
retain()
Increases the reference count by
1. |
SctpMessage |
retain(int increment)
Increases the reference count by the specified
increment. |
SctpMessage |
retainedDuplicate()
Duplicates this
ByteBufHolder. |
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 additional arbitrary information for debugging
purposes.
|
content, contentToString, refCnt, release, releasepublic SctpMessage(int protocolIdentifier,
int streamIdentifier,
ByteBuf payloadBuffer)
protocolIdentifier - of payloadstreamIdentifier - that you want to send the payloadpayloadBuffer - channel bufferpublic SctpMessage(int protocolIdentifier,
int streamIdentifier,
boolean unordered,
ByteBuf payloadBuffer)
protocolIdentifier - of payloadstreamIdentifier - that you want to send the payloadunordered - if true, the SCTP Data Chunk will be sent with the U (unordered) flag set.payloadBuffer - channel bufferpublic SctpMessage(com.sun.nio.sctp.MessageInfo msgInfo,
ByteBuf payloadBuffer)
msgInfo - the MessageInfopayloadBuffer - channel bufferpublic int streamIdentifier()
public int protocolIdentifier()
public boolean isUnordered()
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 boolean equals(Object o)
equals in class DefaultByteBufHolderpublic int hashCode()
hashCode in class DefaultByteBufHolderpublic SctpMessage copy()
DefaultByteBufHolderByteBufHolder.
This method calls replace(content().copy()) by default.
copy in interface ByteBufHoldercopy in class DefaultByteBufHolderpublic SctpMessage duplicate()
DefaultByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().
This method calls replace(content().duplicate()) by default.
duplicate in interface ByteBufHolderduplicate in class DefaultByteBufHolderpublic SctpMessage retainedDuplicate()
DefaultByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().
This method calls replace(content().retainedDuplicate()) by default.
retainedDuplicate in interface ByteBufHolderretainedDuplicate in class DefaultByteBufHolderByteBuf.retainedDuplicate()public SctpMessage replace(ByteBuf content)
DefaultByteBufHolderByteBufHolder which contains the specified content.
Override this method to return a new instance of this object whose content is set to the specified
content. The default implementation of DefaultByteBufHolder.copy(), DefaultByteBufHolder.duplicate() and
DefaultByteBufHolder.retainedDuplicate() invokes this method to create a copy.
replace in interface ByteBufHolderreplace in class DefaultByteBufHolderpublic SctpMessage retain()
ReferenceCounted1.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic SctpMessage retain(int increment)
ReferenceCountedincrement.retain in interface ByteBufHolderretain in interface ReferenceCountedretain in class DefaultByteBufHolderpublic SctpMessage touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ByteBufHoldertouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic SctpMessage touch(Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ByteBufHoldertouch in interface ReferenceCountedtouch in class DefaultByteBufHolderpublic String toString()
toString in class DefaultByteBufHolderCopyright © 2008–2017 The Netty Project. All rights reserved.