Interface SharedResourceManager.Resource<T>

Type Parameters:
T - resource type.
Enclosing class:
SharedResourceManager

public static interface SharedResourceManager.Resource<T>
Defines a resource, and the way to create and destroy instances of it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(T instance)
    Destroy the given instance.
    Create a new instance of the resource.
  • Method Details

    • create

      T create()
      Create a new instance of the resource.
      Returns:
      a new instance of the resource.
    • close

      void close(T instance)
      Destroy the given instance.
      Parameters:
      instance - the instance to destroy.