java.lang.AutoCloseablepublic static class RecoveriesCollection.RecoveryRef
extends java.lang.Object
implements java.lang.AutoCloseable
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 | Description |
|---|---|
RecoveryRef(RecoveryTarget status) |
Important:
AbstractRefCounted.tryIncRef() should
be *successfully* called on status before |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
RecoveryTarget |
target() |
public RecoveryRef(RecoveryTarget status)
AbstractRefCounted.tryIncRef() should
be *successfully* called on status beforepublic void close()
close in interface java.lang.AutoCloseablepublic RecoveryTarget target()