public static interface MessageDeframer.Listener
Modifier and Type | Method and Description |
---|---|
void |
bytesRead(int numBytes)
Called when the given number of bytes has been read from the input source of the deframer.
|
void |
deliveryStalled()
Called when end-of-stream has not yet been reached but there are no complete messages
remaining to be delivered.
|
void |
endOfStream()
Called when the stream is complete and all messages have been successfully delivered.
|
void |
messageRead(InputStream is)
Called to deliver the next complete message.
|
void bytesRead(int numBytes)
numBytes
- the number of bytes read from the deframer's input source.void messageRead(InputStream is)
is
- stream containing the message.void deliveryStalled()
void endOfStream()