Class AbstractRefCounted

    • Constructor Detail

      • AbstractRefCounted

        public AbstractRefCounted​(String name)
    • Method Detail

      • decRef

        public final void decRef()
        Description copied from interface: RefCounted
        Decreases the refCount of this instance. If the refCount drops to 0, then this instance is considered as closed and should not be used anymore.
        Specified by:
        decRef in interface RefCounted
        See Also:
        RefCounted.incRef()
      • alreadyClosed

        protected void alreadyClosed()
      • refCount

        public int refCount()
        Returns the current reference count.
      • getName

        public String getName()
        gets the name of this instance
      • closeInternal

        protected abstract void closeInternal()