GeezerVison is showing netty.io — SctpOutboundByteStreamHandler (Netty API Reference (4.1.141.Final))
Class SctpOutboundByteStreamHandler
- All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
A ChannelHandler which transform ByteBuf to SctpMessage and send it through a specific stream
with given protocol identifier.
Unordered delivery of all messages may be requested by passing unordered = true to the constructor.
-
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
protected void
Encode from one message to an other.
acceptOutboundMessage, write
Modifier and Type
Method
Description
boolean
Returns true if the given message should be handled.
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SctpOutboundByteStreamHandler
public SctpOutboundByteStreamHandler(int streamIdentifier,
int protocolIdentifier)
- Parameters:
streamIdentifier - stream number, this should be >=0 or invalid input: '<'= max stream number of the association.
protocolIdentifier - supported application protocol id.
-
SctpOutboundByteStreamHandler
public SctpOutboundByteStreamHandler(int streamIdentifier,
int protocolIdentifier,
boolean unordered)
- Parameters:
streamIdentifier - stream number, this should be >=0 or invalid input: '<'= max stream number of the association.
protocolIdentifier - supported application protocol id.
unordered - if true, SCTP Data Chunks will be sent with the U (unordered) flag set.
-
Method Details
-
encode
Encode from one message to an other. This method will be called for each written message that can be handled
by this encoder.
- Specified by:
encode in class MessageToMessageEncoder<ByteBuf>
- Parameters:
ctx - the ChannelHandlerContext which this MessageToMessageEncoder belongs to
msg - the message to encode to an other one
out - the List into which the encoded msg should be added
needs to do some kind of aggregation
- Throws:
Exception - is thrown if an error occurs
|