Package com.db4o.internal.fileheader
Class TimerFileLock
- java.lang.Object
-
- com.db4o.internal.fileheader.TimerFileLock
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
TimerFileLockDisabled
,TimerFileLockEnabled
public abstract class TimerFileLock extends java.lang.Object implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description TimerFileLock()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
checkHeaderLock()
abstract void
checkIfOtherSessionAlive(LocalObjectContainer container, int address, int offset, long lastAccessTime)
abstract void
checkOpenTime()
abstract void
close()
static TimerFileLock
forFile(LocalObjectContainer file)
abstract boolean
lockFile()
abstract long
openTime()
abstract void
setAddresses(int baseAddress, int openTimeOffset, int accessTimeOffset)
abstract void
start()
abstract void
writeHeaderLock()
abstract void
writeOpenTime()
-
-
-
Method Detail
-
forFile
public static TimerFileLock forFile(LocalObjectContainer file)
-
checkHeaderLock
public abstract void checkHeaderLock()
-
checkOpenTime
public abstract void checkOpenTime()
-
lockFile
public abstract boolean lockFile()
-
openTime
public abstract long openTime()
-
setAddresses
public abstract void setAddresses(int baseAddress, int openTimeOffset, int accessTimeOffset)
-
start
public abstract void start() throws Db4oIOException
- Throws:
Db4oIOException
-
writeHeaderLock
public abstract void writeHeaderLock()
-
writeOpenTime
public abstract void writeOpenTime()
-
close
public abstract void close() throws Db4oIOException
- Throws:
Db4oIOException
-
checkIfOtherSessionAlive
public abstract void checkIfOtherSessionAlive(LocalObjectContainer container, int address, int offset, long lastAccessTime) throws Db4oIOException
- Throws:
Db4oIOException
-
-