class SFTPWriteFeature extends AppendWriteFeature<Void> {

    protected int getMaxUnconfirmedWrites(final TransferStatus status) {
        if(-1 == status.getLength()) {
            return preferences.getInteger("sftp.write.maxunconfirmed");
        }
        return Integer.min((int) (status.getLength() / preferences.getInteger("connection.chunksize")) + 1,
                preferences.getInteger("sftp.write.maxunconfirmed"));
    }

    public  SFTPWriteFeature(final SFTPSession session);

}