Class AmazonEc2Reference

java.lang.Object
org.opensearch.common.util.concurrent.AbstractRefCounted
org.opensearch.common.concurrent.RefCountedReleasable<com.amazonaws.services.ec2.AmazonEC2>
org.opensearch.discovery.ec2.AmazonEc2Reference
All Implemented Interfaces:
Closeable, AutoCloseable, Releasable, RefCounted

public class AmazonEc2Reference extends RefCountedReleasable<com.amazonaws.services.ec2.AmazonEC2>
Handles the shutdown of the wrapped AmazonEC2 using reference counting.