public final class SctpMessage
extends io.netty.buffer.DefaultByteBufHolder
Constructor and Description |
---|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
boolean unordered,
io.netty.buffer.ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
SctpMessage(int protocolIdentifier,
int streamIdentifier,
io.netty.buffer.ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
SctpMessage(MessageInfo msgInfo,
io.netty.buffer.ByteBuf payloadBuffer)
Essential data that is being carried within SCTP Data Chunk
|
Modifier and Type | Method and Description |
---|---|
SctpMessage |
copy() |
SctpMessage |
duplicate() |
boolean |
equals(Object o) |
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(io.netty.buffer.ByteBuf content) |
SctpMessage |
retain() |
SctpMessage |
retain(int increment) |
SctpMessage |
retainedDuplicate() |
int |
streamIdentifier()
Return the stream-identifier
|
String |
toString() |
SctpMessage |
touch() |
SctpMessage |
touch(Object hint) |
public SctpMessage(int protocolIdentifier, int streamIdentifier, io.netty.buffer.ByteBuf payloadBuffer)
protocolIdentifier
- of payloadstreamIdentifier
- that you want to send the payloadpayloadBuffer
- channel bufferpublic SctpMessage(int protocolIdentifier, int streamIdentifier, boolean unordered, io.netty.buffer.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, io.netty.buffer.ByteBuf payloadBuffer)
msgInfo
- the MessageInfo
payloadBuffer
- 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(Object o)
equals
in class io.netty.buffer.DefaultByteBufHolder
public int hashCode()
hashCode
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.buffer.DefaultByteBufHolder
public SctpMessage touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.buffer.DefaultByteBufHolder
public String toString()
toString
in class io.netty.buffer.DefaultByteBufHolder
Copyright © 2008–2017 The Netty Project. All rights reserved.