Interface AssetHandle

All Superinterfaces:
AutoCloseable

public interface AssetHandle extends AutoCloseable
A client-owned registration for one immutable asset pack.

The content hash can be placed in a RenderJob. Closing the handle releases the registration after in-flight users finish; closing it more than once has no additional effect.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether this registration can still be selected by its owning client.
    void
    Releases this registration.
    Returns the stable content hash used to select this pack in a render job.
  • Method Details

    • contentHash

      String contentHash()
      Returns the stable content hash used to select this pack in a render job.
    • active

      boolean active()
      Returns whether this registration can still be selected by its owning client.
    • close

      void close()
      Releases this registration.
      Specified by:
      close in interface AutoCloseable