protected static class FRAG2.FragEntry extends Object
Modifier | Constructor and Description |
---|---|
protected |
FragEntry(int tot_frags)
Creates a new entry
|
Modifier and Type | Method and Description |
---|---|
protected Message |
assembleMessage()
Assembles all the fragments into one buffer.
|
boolean |
isComplete()
returns true if this fragmentation is complete
ie, all fragmentations have been received for this buffer
|
void |
lock()
Use to synchronize on FragEntry
|
void |
set(int frag_id,
Message frag)
adds on fragmentation buffer to the message
|
String |
toString() |
void |
unlock() |
protected final Lock lock
protected FragEntry(int tot_frags)
tot_frags
- the number of fragments to expect for this messagepublic void lock()
public void unlock()
public void set(int frag_id, Message frag)
frag_id
- the number of the fragment being added 0..(tot_num_of_frags - 1)frag
- the byte buffer containing the data for this fragmentation, should not be nullpublic boolean isComplete()
protected Message assembleMessage()
isComplete()
to verify
before calling this method)Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.