Skip navigation links
B C D F G M P S W 

B

ByteBufferPool - Interface in com.hubject.aws.s3.io
 
ByteBufferPool.Companion - Class in com.hubject.aws.s3.io
 

C

close() - Method in class com.hubject.aws.s3.io.S3OutputStream
Fully flushes the stream and completes the upload.
com.hubject.aws.s3.io - package com.hubject.aws.s3.io
 
Companion - Static variable in interface com.hubject.aws.s3.io.ByteBufferPool
 
Companion - Static variable in class com.hubject.aws.s3.io.S3OutputStream
 

D

default() - Method in class com.hubject.aws.s3.io.ByteBufferPool.Companion
 

F

flush() - Method in class com.hubject.aws.s3.io.S3OutputStream
Flushes this ONLY if there is enough data in the buffer, see MIN_UPLOAD_PART_SIZE
free(buffer) - Method in interface com.hubject.aws.s3.io.ByteBufferPool
Returns this buffer to the pool. User code must not hold any references to the given buffer after this method returns.
free(buffer) - Method in class com.hubject.aws.s3.io.SimpleByteBufferPool
Returns this buffer to the pool. User code must not hold any references to the given buffer after this method returns.

G

getActualLocalCache() - Method in class com.hubject.aws.s3.io.S3OutputStream
The actual amount of local cache; this caps the requested maxLocalCache to what the ByteBuffers can hold (2GiB each).
getAllocateDirect() - Method in class com.hubject.aws.s3.io.SimpleByteBufferPool
Whether to allocate memory off-heap.
getAwsS3() - Method in class com.hubject.aws.s3.io.S3OutputStream
The client to upload with
getBucketName() - Method in exception com.hubject.aws.s3.io.S3ObjectAlreadyExistsException
 
getKey() - Method in exception com.hubject.aws.s3.io.S3ObjectAlreadyExistsException
 
getMaxLocalCache() - Method in class com.hubject.aws.s3.io.S3OutputStream
The maximum amount of memory to use as buffer,
getMaxSpareBuffers() - Method in class com.hubject.aws.s3.io.SimpleByteBufferPool
Maximum number of spare buffers
getTargetBucket() - Method in class com.hubject.aws.s3.io.S3OutputStream
 
getTargetS3Key() - Method in class com.hubject.aws.s3.io.S3OutputStream
 
getUseChecksums() - Method in class com.hubject.aws.s3.io.S3OutputStream
Whether to calculate MD5 checksums of the uploaded data.

M

MAX_SINGLE_FILE_UPLOAD_SIZE - Static variable in class com.hubject.aws.s3.io.S3OutputStream
The maximum size for a single file upload. This value is defined by the AWS S3 people.
MAX_UPLOAD_PART_SIZE - Static variable in class com.hubject.aws.s3.io.S3OutputStream
The maximum size of a single part in a multipart upload. This value is defined by the AWS S3 people.
Md5Kt - Class in com.hubject.aws.s3.io
 
MIN_UPLOAD_PART_SIZE - Static variable in class com.hubject.aws.s3.io.S3OutputStream
The minimum size for single parts of multipart uploads. This value is defined by the AWS S3 people.

P

pop(minSize) - Method in interface com.hubject.aws.s3.io.ByteBufferPool
Returns a buffer that has at least the given amount of bytes of available space. If no such buffer is currently free, one will be allocated.
pop(minSize) - Method in class com.hubject.aws.s3.io.SimpleByteBufferPool
Returns a buffer that has at least the given amount of bytes of available space. If no such buffer is currently free, one will be allocated.

S

S3ObjectAlreadyExistsException - Exception in com.hubject.aws.s3.io
 
S3ObjectAlreadyExistsException(bucketName, key) - Constructor for exception com.hubject.aws.s3.io.S3ObjectAlreadyExistsException
 
S3OutputStream - Class in com.hubject.aws.s3.io
Facilitates streaming to S3 in case the actual file size is not known upfront: uploading via the regular single-file upload will cache the contents in memory and cause an out-of-memory error, especially on AWS lambda. This may happen if you have to stream several GB to S3.
S3OutputStream(awsS3, targetBucket, targetS3Key, maxLocalCache, useChecksums, byteBufferPool) - Constructor for class com.hubject.aws.s3.io.S3OutputStream
Facilitates streaming to S3 in case the actual file size is not known upfront: uploading via the regular single-file upload will cache the contents in memory and cause an out-of-memory error, especially on AWS lambda. This may happen if you have to stream several GB to S3.
S3OutputStream.Companion - Class in com.hubject.aws.s3.io
 
SimpleByteBufferPool - Class in com.hubject.aws.s3.io
A pool for byte buffers, similar to connection pools. Avoids frequent re-allocation.
SimpleByteBufferPool(allocateDirect, maxSpareBuffers) - Constructor for class com.hubject.aws.s3.io.SimpleByteBufferPool
A pool for byte buffers, similar to connection pools. Avoids frequent re-allocation.
SimpleByteBufferPool(allocateDirect) - Constructor for class com.hubject.aws.s3.io.SimpleByteBufferPool
A pool for byte buffers, similar to connection pools. Avoids frequent re-allocation.
SimpleByteBufferPool() - Constructor for class com.hubject.aws.s3.io.SimpleByteBufferPool
A pool for byte buffers, similar to connection pools. Avoids frequent re-allocation.

W

write(b) - Method in class com.hubject.aws.s3.io.S3OutputStream
 
write(b, off, len) - Method in class com.hubject.aws.s3.io.S3OutputStream
 
B C D F G M P S W 
Skip navigation links