Module org.elasticsearch.server
Class RecoveriesCollection.RecoveryRef
java.lang.Object
org.elasticsearch.indices.recovery.RecoveriesCollection.RecoveryRef
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
- Enclosing class:
RecoveriesCollection
a reference to
RecoveryTarget, which implements Releasable. 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
ConstructorsConstructorDescriptionRecoveryRef(RecoveryTarget status) Important:AbstractRefCounted.tryIncRef()should be *successfully* called on status before -
Method Summary
-
Constructor Details
-
RecoveryRef
Important:AbstractRefCounted.tryIncRef()should be *successfully* called on status before
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
target
-