Interface DestructorRegistry.Destructor

Enclosing interface:
DestructorRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

An interface indicating that an implementation is capable of destroying an object that it opaquely references such that the destroyed object will no longer be suitable for use.
Author:
Laird Nelson
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Destroys an object that this implementation opaquely references such that the destroyed object will no longer be suitable for use.
  • Method Details

    • destroy

      void destroy()
      Destroys an object that this implementation opaquely references such that the destroyed object will no longer be suitable for use.

      Implementations of this method must be safe for concurrent use by multiple threads.

      Implementations of this method must be idempotent, performing no action if destruction of the implicit object has already taken place.

      See Also: