Class MessageRecvBuffers
- java.lang.Object
-
- org.apache.hugegraph.computer.core.receiver.MessageRecvBuffers
-
public class MessageRecvBuffers extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MessageRecvBuffers(long bytesLimit, long waitSortedTimeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBuffer(NetworkBuffer data)java.util.List<org.apache.hugegraph.computer.core.io.RandomAccessInput>buffers()Get all the buffers.booleanfull()voidprepareSort()Prepare to sort the buffers, and reset event at the sort beginningvoidsignalSorted()Set event and signal all waiting threadslongtotalBytes()voidwaitSorted()Wait the buffers to be sorted.
-
-
-
Method Detail
-
addBuffer
public void addBuffer(NetworkBuffer data)
-
full
public boolean full()
-
buffers
public java.util.List<org.apache.hugegraph.computer.core.io.RandomAccessInput> buffers()
Get all the buffers.
-
prepareSort
public void prepareSort()
Prepare to sort the buffers, and reset event at the sort beginning
-
waitSorted
public void waitSorted()
Wait the buffers to be sorted.
-
signalSorted
public void signalSorted()
Set event and signal all waiting threads
-
totalBytes
public long totalBytes()
-
-