public static class RecoveriesCollection.StatusRef extends Object implements AutoCloseable
RecoveryStatus
, 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 |
---|
RecoveriesCollection.StatusRef(RecoveryStatus status)
Important:
AbstractRefCounted.tryIncRef() should
be *successfully* called on status before |
public RecoveriesCollection.StatusRef(RecoveryStatus status)
AbstractRefCounted.tryIncRef()
should
be *successfully* called on status beforepublic void close()
close
in interface AutoCloseable
public RecoveryStatus status()
Copyright © 2009–2016. All rights reserved.