public final class SctpMessage extends DefaultByteBufHolder
| 构造器和说明 |
|---|
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(MessageInfo msgInfo,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
| 限定符和类型 | 方法和说明 |
|---|---|
SctpMessage |
copy()
Creates a deep copy of this
ByteBufHolder. |
SctpMessage |
duplicate()
Duplicates this
ByteBufHolder. |
boolean |
equals(java.lang.Object o)
This implementation of the
equals operation is restricted to
work only with instances of the same class. |
int |
hashCode() |
boolean |
isComplete()
Return
true if this message is complete. |
boolean |
isUnordered()
return the unordered flag
|
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
|
java.lang.String |
toString() |
SctpMessage |
touch()
Records the current access location of this object for debugging purposes.
|
SctpMessage |
touch(java.lang.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(MessageInfo msgInfo, ByteBuf payloadBuffer)
msgInfo - the MessageInfopayloadBuffer - channel bufferpublic int streamIdentifier()
public int protocolIdentifier()
public boolean isUnordered()
public MessageInfo messageInfo()
MessageInfo for inbound messages or null for
outbound messages.public boolean isComplete()
true if this message is complete.public boolean equals(java.lang.Object o)
DefaultByteBufHolderequals operation is restricted to
work only with instances of the same class. The reason for that is that
Netty library already has a number of classes that extend DefaultByteBufHolder and
override equals method with an additional comparison logic and we
need the symmetric property of the equals operation to be preserved.equals 在类中 DefaultByteBufHoldero - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.public int hashCode()
hashCode 在类中 DefaultByteBufHolderpublic SctpMessage copy()
DefaultByteBufHolderByteBufHolder.
This method calls replace(content().copy()) by default.
copy 在接口中 ByteBufHoldercopy 在类中 DefaultByteBufHolderpublic SctpMessage duplicate()
DefaultByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().
This method calls replace(content().duplicate()) by default.
duplicate 在接口中 ByteBufHolderduplicate 在类中 DefaultByteBufHolderpublic SctpMessage retainedDuplicate()
DefaultByteBufHolderByteBufHolder. This method returns a retained duplicate unlike ByteBufHolder.duplicate().
This method calls replace(content().retainedDuplicate()) by default.
retainedDuplicate 在接口中 ByteBufHolderretainedDuplicate 在类中 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 在接口中 ByteBufHolderreplace 在类中 DefaultByteBufHolderpublic SctpMessage retain()
ReferenceCounted1.retain 在接口中 ByteBufHolderretain 在接口中 ReferenceCountedretain 在类中 DefaultByteBufHolderpublic SctpMessage retain(int increment)
ReferenceCountedincrement.retain 在接口中 ByteBufHolderretain 在接口中 ReferenceCountedretain 在类中 DefaultByteBufHolderpublic SctpMessage touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch 在接口中 ByteBufHoldertouch 在接口中 ReferenceCountedtouch 在类中 DefaultByteBufHolderpublic SctpMessage touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch 在接口中 ByteBufHoldertouch 在接口中 ReferenceCountedtouch 在类中 DefaultByteBufHolderpublic java.lang.String toString()
toString 在类中 DefaultByteBufHolder