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 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consume(long dec)
void
expand(long inc)
int
getMaxPacketSize()
long
getSize()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-