dataCache = new LRDCache(dataBuffers);
dataCache = new LRUCache(dataBuffers);
    public DOMFile(BrokerPool pool, int buffers, int dataBuffers) {        super(pool, buffers);        lock = new ReentrantReadWriteLock("dom.dbx");        fileHeader = (DOMFileHeader) getFileHeader();        fileHeader.setPageCount(0);        fileHeader.setTotalCount(0);        dataCache = new LRDCache(dataBuffers);        dataCache.setFileName("dom.dbx");                Runnable syncAction = new Runnable() {            public void run() {                if(dataCache.hasDirtyItems()) {	                try {	                    lock.acquire(Lock.WRITE_LOCK);	                    dataCache.flush();	                } catch (LockException e) {	                    LOG.warn("Failed to acquire lock on dom.dbx");	                } finally {	                    lock.release();	                }                }            }        };        pool.getSyncDaemon().executePeriodically(DATA_SYNC_PERIOD, syncAction, false);    }