Class HdlcMessageQueue

  • All Implemented Interfaces:
    java.lang.Iterable<byte[]>

    public class HdlcMessageQueue
    extends java.lang.Object
    implements java.lang.Iterable<byte[]>
    • Constructor Summary

      Constructors 
      Constructor Description
      HdlcMessageQueue​(int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      void clearTil​(int sendSeq)  
      int getCapacity()  
      java.util.Iterator<byte[]> iterator()  
      void offerMessage​(byte[] dataToSend, int sendSequence)  
      void reszize​(int newSize)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • HdlcMessageQueue

        public HdlcMessageQueue​(int capacity)
    • Method Detail

      • reszize

        public void reszize​(int newSize)
      • getCapacity

        public int getCapacity()
      • clearTil

        public void clearTil​(int sendSeq)
      • size

        public int size()
      • clear

        public void clear()
      • offerMessage

        public void offerMessage​(byte[] dataToSend,
                                 int sendSequence)
      • iterator

        public java.util.Iterator<byte[]> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<byte[]>