Class MemoryMappedFileCleaner

  • All Implemented Interfaces:
    Runnable, Cleaner

    public class MemoryMappedFileCleaner
    extends Object
    implements Cleaner
    Memory mapped file cleaner
    Author:
    royer
    • Constructor Detail

      • MemoryMappedFileCleaner

        public MemoryMappedFileCleaner​(FileChannel pFileChannel,
                                       long pMemoryMapAddress,
                                       long pMappedRegionLength,
                                       Long pSignature)
        Instanciates a cleaner that can free the ressources associated to a memroy mapped file.
        Parameters:
        pFileChannel - file channel
        pMemoryMapAddress - memory mapped address
        pMappedRegionLength - mapped region length
        pSignature - signature
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Cleaner
        Specified by:
        run in interface Runnable