in activeio-core/src/main/java/org/apache/activeio/journal/active/JournalImpl.java [104:123]
public JournalImpl(LogFileManager logFile) {
this.file = logFile;
this.packetPool = createBufferPool();
this.executor = new ThreadPoolExecutor(1, 1, 30, TimeUnit.SECONDS, new LinkedBlockingQueue(), new ThreadFactory() {
public Thread newThread(Runnable runnable) {
Thread answer = new Thread(runnable, "Journal Writer");
answer.setPriority(Thread.MAX_PRIORITY);
answer.setDaemon(true);
return answer;
}
});
//executor.allowCoreThreadTimeOut(true);
lastMarkedLocation = file.getLastMarkedRecordLocation();
Location nextAppendLocation = file.getNextAppendLocation();
appendLogFileId = nextAppendLocation.getLogFileId();
appendLogFileOffset = nextAppendLocation.getLogFileOffset();
rolloverFence = (file.getInitialLogFileSize() / 10) * 9;
}