Interface IDiscardableChunkComponent

    • Method Detail

      • discardChunk

        Runnable discardChunk​(int chunkId)
        Discards the chunk of data with the given ID.

        The given chunk is guaranteed not to be accessed anymore.

        Parameters:
        chunkId - the id of the discarded chunk
        Returns:
        the runnable to run to actually discard the chunk
      • isChunkDiscarded

        boolean isChunkDiscarded​(int chunkId)
        Returns whether the chunk with the given id has been discarded or not.
        Parameters:
        chunkId - the chunk id
        Returns:
        true if the given chunk has been discarded, false otherwise