Class Window

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Window.Local
      Controls how much data remote end can send before an adjustment notification from us is required.
      static class  Window.Remote
      Controls how much data we can send before an adjustment notification from remote end is required.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object lock  
      protected org.slf4j.Logger log  
      protected int maxPacketSize  
      protected long size  
    • Constructor Summary

      Constructors 
      Constructor Description
      Window​(long initialWinSize, int maxPacketSize, LoggerFactory loggerFactory)  
    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • lock

        protected final java.lang.Object lock
      • maxPacketSize

        protected final int maxPacketSize
      • size

        protected long size
    • Constructor Detail

      • Window

        public Window​(long initialWinSize,
                      int maxPacketSize,
                      LoggerFactory loggerFactory)
    • Method Detail

      • expand

        public void expand​(long inc)
      • getMaxPacketSize

        public int getMaxPacketSize()
      • getSize

        public long getSize()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object