Class 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
      void addBuffer​(NetworkBuffer data)  
      java.util.List<org.apache.hugegraph.computer.core.io.RandomAccessInput> buffers()
      Get all the buffers.
      boolean full()  
      void prepareSort()
      Prepare to sort the buffers, and reset event at the sort beginning
      void signalSorted()
      Set event and signal all waiting threads
      long totalBytes()  
      void waitSorted()
      Wait the buffers to be sorted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageRecvBuffers

        public MessageRecvBuffers​(long bytesLimit,
                                  long waitSortedTimeout)
    • Method Detail

      • 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()