net.schmizz.sshj.connection.channel
Class Window

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

public abstract class Window
extends Object


Nested Class Summary
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
protected  Object lock
           
protected  org.slf4j.Logger log
           
protected  int maxPacketSize
           
protected  long size
           
 
Constructor Summary
Window(long initialWinSize, int maxPacketSize)
           
 
Method Summary
 void consume(long dec)
           
 void expand(long inc)
           
 int getMaxPacketSize()
           
 long getSize()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log

lock

protected final Object lock

maxPacketSize

protected final int maxPacketSize

size

protected long size
Constructor Detail

Window

public Window(long initialWinSize,
              int maxPacketSize)
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 String toString()
Overrides:
toString in class Object


Copyright © 2009-2012. All Rights Reserved.