Package org.opensearch.discovery.ec2
Class AmazonEc2ClientReference
java.lang.Object
org.opensearch.common.util.concurrent.AbstractRefCounted
org.opensearch.common.concurrent.RefCountedReleasable<software.amazon.awssdk.services.ec2.Ec2Client>
org.opensearch.discovery.ec2.AmazonEc2ClientReference
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opensearch.common.lease.Releasable,RefCounted
public class AmazonEc2ClientReference
extends RefCountedReleasable<software.amazon.awssdk.services.ec2.Ec2Client>
Handles the shutdown of the wrapped
Ec2Client using reference
counting.-
Method Summary
Methods inherited from class org.opensearch.common.concurrent.RefCountedReleasable
close, closeInternal, getMethods inherited from class org.opensearch.common.util.concurrent.AbstractRefCounted
alreadyClosed, decRef, getName, incRef, refCount, tryIncRef