org.apache.solr.common.util

## Class ObjectReleaseTracker

- java.lang.Object
- - org.apache.solr.common.util.ObjectReleaseTracker

-     public class ObjectReleaseTracker
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static Map<Object,String>` | `OBJECTS`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ObjectReleaseTracker()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `checkEmpty()`
    `static void` | `clear()`
    `static String` | `clearObjectTrackerAndCheckEmpty(int waitSeconds)`
    `static boolean` | `release(Object object)`
    `static boolean` | `track(Object object)`
    `static void` | `tryClose()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### OBJECTS

          public static Map<Object,String> OBJECTS

  - ### Constructor Detail

    - #### ObjectReleaseTracker

          public ObjectReleaseTracker()

  - ### Method Detail

    - #### track

          public static boolean track(Object object)

    - #### release

          public static boolean release(Object object)

    - #### clear

          public static void clear()

    - #### clearObjectTrackerAndCheckEmpty

          public static String clearObjectTrackerAndCheckEmpty(int waitSeconds)

      Returns:
        null if ok else error message

    - #### checkEmpty

          public static String checkEmpty()

      Returns:
        null if ok else error message

    - #### tryClose

          public static void tryClose()

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.