@Override public void writePage(long id, /*P*/ byte[] page) throws IOException { checkId(id); mPageArray.writePage(id, page, 0); }
@Override public /*P*/ byte[] evictPage(long id, /*P*/ byte[] page) throws IOException { checkId(id); return mPageArray.evictPage(id, page); }
@Override public /*P*/ byte[] evictPage(long id, /*P*/ byte[] page) throws IOException { checkId(id); return mPageArray.evictPage(id, page); }
@Override public /*P*/ byte[] evictPage(long id, /*P*/ byte[] page) throws IOException { checkId(id); return mPageArray.evictPage(id, page); }
@Override public void writePage(long id, /*P*/ byte[] page) throws IOException { checkId(id); mPageArray.writePage(id, page, 0); }
@Override public void writePage(long id, /*P*/ byte[] page) throws IOException { checkId(id); mPageArray.writePage(id, page, 0); }
@Override public void deletePage(long id, boolean force) throws IOException { checkId(id); CommitLock.Shared shared = mCommitLock.acquireShared(); try { mPageManager.deletePage(id, force); } catch (IOException e) { throw e; } catch (Throwable e) { throw closeOnFailure(e); } finally { shared.release(); } mPageArray.uncachePage(id); }
@Override public void deletePage(long id) throws IOException { checkId(id); CommitLock.Shared shared = mCommitLock.acquireShared(); try { mPageManager.deletePage(id); } catch (IOException e) { throw e; } catch (Throwable e) { throw closeOnFailure(e); } finally { shared.release(); } mPageArray.uncachePage(id); }
@Override public void deletePage(long id) throws IOException { checkId(id); CommitLock.Shared shared = mCommitLock.acquireShared(); try { mPageManager.deletePage(id); } catch (IOException e) { throw e; } catch (Throwable e) { throw closeOnFailure(e); } finally { shared.release(); } mPageArray.uncachePage(id); }
@Override public void recyclePage(long id) throws IOException { checkId(id); CommitLock.Shared shared = mCommitLock.acquireShared(); try { try { mPageManager.recyclePage(id); } catch (IOException e) { mPageManager.deletePage(id, true); } } catch (Throwable e) { throw closeOnFailure(e); } finally { shared.release(); } }
@Override public void recyclePage(long id) throws IOException { checkId(id); CommitLock.Shared shared = mCommitLock.acquireShared(); try { try { mPageManager.recyclePage(id); } catch (IOException e) { mPageManager.deletePage(id); } } catch (IOException e) { throw e; } catch (Throwable e) { throw closeOnFailure(e); } finally { shared.release(); } }
@Override public void recyclePage(long id) throws IOException { checkId(id); CommitLock.Shared shared = mCommitLock.acquireShared(); try { try { mPageManager.recyclePage(id); } catch (IOException e) { mPageManager.deletePage(id); } } catch (IOException e) { throw e; } catch (Throwable e) { throw closeOnFailure(e); } finally { shared.release(); } }