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(com.sun.nio.sctp.MessageInfo msgInfo,
ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
限定符和类型 | 方法和说明 |
---|---|
SctpMessage |
copy()
Create a deep copy of this
ByteBufHolder . |
SctpMessage |
duplicate()
Duplicate the
ByteBufHolder . |
boolean |
equals(java.lang.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 |
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
|
java.lang.String |
toString() |
content, contentToString, refCnt, release, release
public 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 MessageInfo
payloadBuffer
- 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(java.lang.Object o)
equals
在类中 DefaultByteBufHolder
public int hashCode()
hashCode
在类中 DefaultByteBufHolder
public SctpMessage copy()
ByteBufHolder
ByteBufHolder
.copy
在接口中 ByteBufHolder
copy
在类中 DefaultByteBufHolder
public SctpMessage duplicate()
ByteBufHolder
ByteBufHolder
. Be aware that this will not automatically call ByteBufHolder.retain()
.duplicate
在接口中 ByteBufHolder
duplicate
在类中 DefaultByteBufHolder
public SctpMessage retain()
ReferenceCounted
1
.retain
在接口中 ByteBufHolder
retain
在接口中 ReferenceCounted
retain
在类中 DefaultByteBufHolder
public SctpMessage retain(int increment)
ReferenceCounted
increment
.retain
在接口中 ByteBufHolder
retain
在接口中 ReferenceCounted
retain
在类中 DefaultByteBufHolder
public java.lang.String toString()
toString
在类中 DefaultByteBufHolder