Package rockBlock

Class RockBlockOutgoingDataBlock


public class RockBlockOutgoingDataBlock extends RockBlockDataBlock<RockBlockOutgoingMessage>
Author:
mo55
  • Constructor Details

    • RockBlockOutgoingDataBlock

      public RockBlockOutgoingDataBlock(Class unitClass, String dataName, PamProcess parentProcess, int channelMap)
      Parameters:
      unitClass -
      dataName -
      parentProcess -
      channelMap -
  • Method Details

    • getFirstMessageToSend

      public int getFirstMessageToSend()
      Returns the index number of the first message that hasn't been sent yet. If all messages have been sent, will return a -1
      Returns:
      the index number of the first message that hasn't been sent yet, or a -1 if all messages have been sent
    • countUnsent

      public int countUnsent()
      Count up the number of unsent messages in the outgoing queue
      Returns: