Package icyllis.arc3d.engine

# Class ReleaseCallback

java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.engine.ReleaseCallback

All Implemented Interfaces:
  `RefCounted`

public abstract class ReleaseCallback extends RefCnt
Ref-counted object that calls a callback from its destructor.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ReleaseCallback()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected final void`
  `deallocate()`
  Override this method to invoke de-allocation of the underlying resource.
  `abstract void`
  `invoke()`
  This callback is invoked when the resource is released.

  ### Methods inherited from class icyllis.arc3d.core.RefCnt

  `create, create, getRefCnt, getRefCntAcquire, getRefCntVolatile, move, move, ref, unique, unref`

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

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

- ## Constructor Details

  - ### ReleaseCallback

    public ReleaseCallback()

- ## Method Details

  - ### deallocate

    protected final void deallocate()
    Description copied from class: `RefCnt`
    Override this method to invoke de-allocation of the underlying resource.
    Specified by:
      `deallocate` in class `RefCnt`

  - ### invoke

    public abstract void invoke()
    This callback is invoked when the resource is released.