Package com.db4o.internal.fileheader
Class TimerFileLockEnabled
- java.lang.Object
-
- com.db4o.internal.fileheader.TimerFileLock
-
- com.db4o.internal.fileheader.TimerFileLockEnabled
-
- All Implemented Interfaces:
java.lang.Runnable
public class TimerFileLockEnabled extends TimerFileLock
-
-
Constructor Summary
Constructors Constructor Description TimerFileLockEnabled(IoAdaptedObjectContainer file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkHeaderLock()
void
checkIfOtherSessionAlive(LocalObjectContainer container, int address, int offset, long lastAccessTime)
void
checkOpenTime()
void
close()
boolean
lockFile()
long
openTime()
void
run()
void
setAddresses(int baseAddress, int openTimeOffset, int accessTimeOffset)
void
start()
void
writeHeaderLock()
void
writeOpenTime()
-
Methods inherited from class com.db4o.internal.fileheader.TimerFileLock
forFile
-
-
-
-
Constructor Detail
-
TimerFileLockEnabled
public TimerFileLockEnabled(IoAdaptedObjectContainer file)
-
-
Method Detail
-
checkHeaderLock
public void checkHeaderLock()
- Specified by:
checkHeaderLock
in classTimerFileLock
-
checkOpenTime
public void checkOpenTime()
- Specified by:
checkOpenTime
in classTimerFileLock
-
checkIfOtherSessionAlive
public void checkIfOtherSessionAlive(LocalObjectContainer container, int address, int offset, long lastAccessTime) throws Db4oIOException
- Specified by:
checkIfOtherSessionAlive
in classTimerFileLock
- Throws:
Db4oIOException
-
close
public void close() throws Db4oIOException
- Specified by:
close
in classTimerFileLock
- Throws:
Db4oIOException
-
lockFile
public boolean lockFile()
- Specified by:
lockFile
in classTimerFileLock
-
openTime
public long openTime()
- Specified by:
openTime
in classTimerFileLock
-
run
public void run()
-
setAddresses
public void setAddresses(int baseAddress, int openTimeOffset, int accessTimeOffset)
- Specified by:
setAddresses
in classTimerFileLock
-
start
public void start() throws Db4oIOException
- Specified by:
start
in classTimerFileLock
- Throws:
Db4oIOException
-
writeHeaderLock
public void writeHeaderLock()
- Specified by:
writeHeaderLock
in classTimerFileLock
-
writeOpenTime
public void writeOpenTime()
- Specified by:
writeOpenTime
in classTimerFileLock
-
-