How to close an AWS S3 client connection

What is the protocol for closing aws s3 client connection?

@Override
public boolean connect() {

    if (connected)
        return false;
    else
        s3Client = new AmazonS3Client(credentials);
    return true;
}

@Override
public boolean diconnect() {
    // what should take place here? 
    return false;
}
+4
source share
2 answers

You do not need to close the “connection”, because when using AmazonS3Client there is no such thing as a continuous connection to S3.

The Java SDK SDK sends REST requests to S3 where REST does not have a status, for each REST request it will be signed with user credential information, so it does not need a long connection (for example, something like a session).

+8
source

There is an optional method called shutdown '.

, , . , , , . - .

+3

All Articles