private void blockIfNecessary()

in src/main/java/software/amazon/encryption/s3/internal/MultiFileOutputStream.java [179:190]


    private void blockIfNecessary() {
        if (diskPermits == null || diskLimit == Long.MAX_VALUE) {
            return;
        }
        try {
            diskPermits.acquire();
        } catch (InterruptedException e) {
            // Don't want to re-interrupt, so it won't cause SDK stream to be
            // closed in case the thread is reused for a different request
            throw new S3EncryptionClientException(e.getMessage(), e);
        }
    }