Class SimpleRefCounted

java.lang.Object
org.elasticsearch.core.AbstractRefCounted
org.elasticsearch.core.SimpleRefCounted
All Implemented Interfaces:
RefCounted

public class SimpleRefCounted extends AbstractRefCounted
RefCounted which does nothing when all references are released. It is the responsibility of the caller to run whatever release logic should be executed when AbstractRefCounted.decRef() returns true.
  • Constructor Details

    • SimpleRefCounted

      public SimpleRefCounted()
  • Method Details

    • closeInternal

      protected void closeInternal()
      Description copied from class: AbstractRefCounted
      Method that is invoked once the reference count reaches zero. Implementations of this method must handle all exceptions and may not throw any exceptions.
      Specified by:
      closeInternal in class AbstractRefCounted