Class Window

java.lang.Object
net.schmizz.sshj.connection.channel.Window
Direct Known Subclasses:
Window.Local, Window.Remote

public abstract class Window extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Controls how much data remote end can send before an adjustment notification from us is required.
    static final class 
    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 final Object
     
    protected final org.slf4j.Logger
     
    protected final int
     
    protected long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Window(long initialWinSize, int maxPacketSize, LoggerFactory loggerFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(long dec)
     
    void
    expand(long inc)
     
    int
     
    long
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • log

      protected final org.slf4j.Logger log
    • lock

      protected final Object lock
    • maxPacketSize

      protected final int maxPacketSize
    • size

      protected long size
  • Constructor Details

    • Window

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

    • expand

      public void expand(long inc)
    • getMaxPacketSize

      public int getMaxPacketSize()
    • getSize

      public long getSize()
    • consume

      public void consume(long dec) throws ConnectionException
      Throws:
      ConnectionException
    • toString

      public String toString()
      Overrides:
      toString in class Object