Package one.nio.mem

Class SharedMemoryBlobMap

    • Constructor Detail

      • SharedMemoryBlobMap

        public SharedMemoryBlobMap​(int capacity,
                                   java.lang.String fileName,
                                   long fileSize)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • SharedMemoryBlobMap

        public SharedMemoryBlobMap​(int capacity,
                                   java.lang.String fileName,
                                   long fileSize,
                                   long expirationTime)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • sizeOf

        protected int sizeOf​(byte[] value)
        Overrides:
        sizeOf in class SharedMemoryMap<java.lang.Long,​byte[]>
      • setValueAt

        protected void setValueAt​(long entry,
                                  byte[] value)
        Overrides:
        setValueAt in class SharedMemoryMap<java.lang.Long,​byte[]>
      • valueAt

        protected byte[] valueAt​(long entry)
        Overrides:
        valueAt in class SharedMemoryMap<java.lang.Long,​byte[]>