Class RecoveriesCollection.RecoveryRef
- java.lang.Object
-
- org.elasticsearch.indices.recovery.RecoveriesCollection.RecoveryRef
-
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- RecoveriesCollection
public static class RecoveriesCollection.RecoveryRef extends Object implements AutoCloseable
a reference toRecoveryTarget, which implementsAutoCloseable. closing the reference causesAbstractRefCounted.decRef()to be called. This makes sure that the underlying resources will not be freed untilclose()is called.
-
-
Constructor Summary
Constructors Constructor Description RecoveryRef(RecoveryTarget status)Important:AbstractRefCounted.tryIncRef()should be *successfully* called on status before
-
-
-
Constructor Detail
-
RecoveryRef
public RecoveryRef(RecoveryTarget status)
Important:AbstractRefCounted.tryIncRef()should be *successfully* called on status before
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
target
public RecoveryTarget target()
-
-