Interface ResourceType<T extends ResourcePool>

    • Method Detail

      • getResourcePoolClass

        java.lang.Class<T> getResourcePoolClass()
        Gets the ResourcePool type associated with this ResourceType.
        Returns:
        the ResourcePool type associated with this type
      • isPersistable

        boolean isPersistable()
        Indicates whether this ResourceType supports persistence.

        Persistence in this context means that a ResourcePool of this ResourceType can be configured so that data stored in it will survive a JVM restart.

        Returns:
        true if it supports persistence, false otherwise
      • requiresSerialization

        boolean requiresSerialization()
        Indicates whether this ResourceType requires serialization support.
        Returns:
        true if serializers are required, false otherwise
      • getTierHeight

        int getTierHeight()
        Indicates the level this resource sits in the tiering system.

        Higher means resource is faster and less abundant, lower means resource is slower but potentially larger.

        Returns:
        the resource tier height