Class Window
- java.lang.Object
-
- net.schmizz.sshj.connection.channel.Window
-
- Direct Known Subclasses:
Window.Local,Window.Remote
public abstract class Window extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindow.LocalControls how much data remote end can send before an adjustment notification from us is required.static classWindow.RemoteControls 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.Objectlockprotected org.slf4j.Loggerlogprotected intmaxPacketSizeprotected longsize
-
Constructor Summary
Constructors Constructor Description Window(long initialWinSize, int maxPacketSize, LoggerFactory loggerFactory)
-
Method Summary
Modifier and Type Method Description voidconsume(long dec)voidexpand(long inc)intgetMaxPacketSize()longgetSize()java.lang.StringtoString()
-
-
-
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()
-
consume
public void consume(long dec) throws ConnectionException- Throws:
ConnectionException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-