Package org.apache.solr.common.util
Class ObjectReleaseTracker
- java.lang.Object
-
- org.apache.solr.common.util.ObjectReleaseTracker
-
public class ObjectReleaseTracker extends Object
-
-
Constructor Summary
Constructors Constructor Description ObjectReleaseTracker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
checkEmpty()
static void
clear()
static String
clearObjectTrackerAndCheckEmpty()
static boolean
release(Object object)
static boolean
track(Object object)
static void
tryClose()
-
-
-
Method Detail
-
track
public static boolean track(Object object)
-
release
public static boolean release(Object object)
-
clear
public static void clear()
-
checkEmpty
public static String checkEmpty()
- Returns:
- null if ok else error message
-
tryClose
public static void tryClose()
-
clearObjectTrackerAndCheckEmpty
public static String clearObjectTrackerAndCheckEmpty()
- Returns:
- null if ok else error message
-
-