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