public 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 and Description |
---|
RecoveryRef(RecoveryTarget status)
Important:
AbstractRefCounted.tryIncRef() should
be *successfully* called on status before |
Modifier and Type | Method and 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.AutoCloseable
public RecoveryTarget target()