Modifier and Type | Field and Description |
---|---|
protected byte[] |
buffer |
protected Lock |
lock |
protected Message |
msg |
protected int |
num_frags |
protected FixedSizeBitSet |
received |
Modifier | Constructor and Description |
---|---|
protected |
FragEntry(int num_frags)
Creates a new entry
|
Modifier and Type | Method and Description |
---|---|
protected Message |
assembleMessage()
Assembles all the fragments into one buffer.
|
protected boolean |
isComplete()
Returns true if this fragmentation is complete, ie all fragments have been received for this buffer
|
Message |
set(Message frag_msg,
Frag3Header hdr)
Adds a fragment to the full message
|
String |
toString() |
protected final Lock lock
protected Message msg
protected byte[] buffer
protected final int num_frags
protected final FixedSizeBitSet received
protected FragEntry(int num_frags)
num_frags
- the number of fragments expected for this messagepublic Message set(Message frag_msg, Frag3Header hdr)
protected boolean isComplete()
protected Message assembleMessage()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.