public class Segment<B> extends Object
Frames in protocol v5 and above. This is a new protocol construct that
allows checksumming and compressing multiple messages together.
payload contains either:
Frames, all concatenated together. In this case, isSelfContained is true.
Frame (if that frame is longer than MAX_PAYLOAD_LENGTH). In this case, isSelfContained is false.
Naming is provisional: it's possible that this type will be renamed to "frame", and Frame to something else, at some point in the future (this is an ongoing discussion on the
server ticket).
| Modifier and Type | Field and Description |
|---|---|
boolean |
isSelfContained |
static int |
MAX_PAYLOAD_LENGTH |
B |
payload |
Copyright © 2017–2022. All rights reserved.