public class DigitalObjectReferenceCounter
extends java.lang.Object
unreachable(String)
to perform an object automatically when a handle has no extant references.Constructor and Description |
---|
DigitalObjectReferenceCounter() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Remove references to DigitalObjects and DataElements that have been garbage collected.
|
int |
get(java.lang.String handle)
Return the number of tracked references to the given handle.
|
int |
getTotalCount()
Returns the total number of tracked references to all handles
|
java.lang.String |
pollHandle() |
java.lang.String |
removeHandle() |
java.lang.String |
removeHandle(long timeout) |
void |
track(DataElement el)
Track a reference to the given DataElement.
|
void |
track(DigitalObject dobj)
Track a reference to the given DigitalObject.
|
public void track(DigitalObject dobj)
public void track(DataElement el)
public void cleanUp()
public int getTotalCount()
public int get(java.lang.String handle)
public java.lang.String pollHandle()
public java.lang.String removeHandle() throws java.lang.InterruptedException
java.lang.InterruptedException
public java.lang.String removeHandle(long timeout) throws java.lang.InterruptedException
java.lang.InterruptedException