Interface ResourceType<T extends ResourcePool>

Type Parameters:
T - associated ResourcePool type
All Known Implementing Classes:
ResourceType.Core, ResourceType.SharedResource

public interface ResourceType<T extends ResourcePool>
A resource type.
See Also:
  • Method Details

    • getResourcePoolClass

      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