@Internal public class RefCountedFile extends Object implements RefCounted
File
.Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
Constructor and Description |
---|
RefCountedFile(File file) |
Modifier and Type | Method and Description |
---|---|
File |
getFile() |
int |
getReferenceCounter() |
boolean |
release()
Decreases the reference counter.
|
void |
retain()
Increases the reference counter.
|
public RefCountedFile(File file)
public File getFile()
public void retain()
RefCounted
retain
in interface RefCounted
public boolean release()
RefCounted
release
in interface RefCounted
true
if the reference counter reached 0, false
otherwise.public int getReferenceCounter()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.