int->long

This commit is contained in:
Shikhar Bhushan
2012-02-06 23:36:18 +00:00
parent ee07072846
commit 53ad9d2288
2 changed files with 5 additions and 5 deletions

View File

@@ -125,14 +125,14 @@ public interface Connection {
void setMaxPacketSize(int maxPacketSize); void setMaxPacketSize(int maxPacketSize);
/** @return the size for the local window this connection recommends to any {@link Channel}'s that ask for it. */ /** @return the size for the local window this connection recommends to any {@link Channel}'s that ask for it. */
int getWindowSize(); long getWindowSize();
/** /**
* Set the size for the local window this connection recommends to any {@link Channel}'s that ask for it. * Set the size for the local window this connection recommends to any {@link Channel}'s that ask for it.
* *
* @param windowSize window size in bytes * @param windowSize window size in bytes
*/ */
void setWindowSize(int windowSize); void setWindowSize(long windowSize);
/** @return the associated {@link Transport}. */ /** @return the associated {@link Transport}. */
Transport getTransport(); Transport getTransport();

View File

@@ -51,7 +51,7 @@ public class ConnectionImpl
private final Queue<Promise<SSHPacket, ConnectionException>> globalReqPromises = new LinkedList<Promise<SSHPacket, ConnectionException>>(); private final Queue<Promise<SSHPacket, ConnectionException>> globalReqPromises = new LinkedList<Promise<SSHPacket, ConnectionException>>();
private int windowSize = 2048 * 1024; private long windowSize = 2048 * 1024;
private int maxPacketSize = 32 * 1024; private int maxPacketSize = 32 * 1024;
/** /**
@@ -159,12 +159,12 @@ public class ConnectionImpl
} }
@Override @Override
public int getWindowSize() { public long getWindowSize() {
return windowSize; return windowSize;
} }
@Override @Override
public void setWindowSize(int windowSize) { public void setWindowSize(long windowSize) {
this.windowSize = windowSize; this.windowSize = windowSize;
} }