List of usage examples for com.amazonaws.services.ec2 AmazonEC2AsyncClient shutdown
@Override public void shutdown()
From source file:com.vmware.photon.controller.model.adapters.awsadapter.AWSUtils.java
License:Open Source License
/** * Releases all the resources allocated for the use of the AWS EC2 client. *///ww w.j av a 2 s.co m public static void cleanupEC2ClientResources(AmazonEC2AsyncClient client) { if (client != null) { client.shutdown(); // To ensure that no requests are made on a client on which shutdown has already been // invoked. client = null; } }