Interface ResourceAllocator

All Known Implementing Classes:
NonSupportedResourceAllocatorImpl

public interface ResourceAllocator
Resource related actions which the SlotManager can perform.
  • Method Details

    • isSupported

      boolean isSupported()
      Whether allocate/release resources are supported.
    • cleaningUpDisconnectedResource

      void cleaningUpDisconnectedResource(ResourceID resourceID)
      Clean up the disconnected resource with the given resource id.
      Parameters:
      resourceID - identifying which resource to clean up
    • declareResourceNeeded

      void declareResourceNeeded(Collection<ResourceDeclaration> resourceDeclarations)
      declare resource need by slot manager.