public class MappedFileUnsafe extends Object implements org.garret.perst.IFile
Constructor and Description |
---|
MappedFileUnsafe(String filePath,
long len) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getInt(long pos) |
long |
getLong(long pos) |
long |
length() |
void |
lock(boolean shared) |
void |
putInt(long pos,
int val) |
void |
putLong(long pos,
long val) |
int |
read(long pos,
byte[] data) |
void |
remap(long nLen) |
void |
sync() |
boolean |
tryLock(boolean shared) |
void |
unlock() |
void |
write(long pos,
byte[] data) |
public int getInt(long pos)
public long getLong(long pos)
public void putInt(long pos, int val)
public void putLong(long pos, long val)
public void close()
close
in interface org.garret.perst.IFile
public long length()
length
in interface org.garret.perst.IFile
public int read(long pos, byte[] data)
read
in interface org.garret.perst.IFile
public void write(long pos, byte[] data)
write
in interface org.garret.perst.IFile
public void sync()
sync
in interface org.garret.perst.IFile
public boolean tryLock(boolean shared)
tryLock
in interface org.garret.perst.IFile
public void lock(boolean shared)
lock
in interface org.garret.perst.IFile
public void unlock()
unlock
in interface org.garret.perst.IFile
Copyright © 2016 Sensia Software LLC. All rights reserved.