@Override public Snapshot beginSnapshot() throws IOException { if (!(mPageDb.isDurable())) { throw new UnsupportedOperationException("Snapshot only allowed for durable databases"); } checkClosed(); DurablePageDb pageDb = (DurablePageDb) mPageDb; return pageDb.beginSnapshot(this); }
@Override public Snapshot beginSnapshot() throws IOException { if (!(mPageDb.isDurable())) { throw new UnsupportedOperationException("Snapshot only allowed for durable databases"); } checkClosed(); DurablePageDb pageDb = (DurablePageDb) mPageDb; return pageDb.beginSnapshot(this); }
@Override public Snapshot beginSnapshot() throws IOException { if (!(mPageDb.isDurable())) { throw new UnsupportedOperationException("Snapshot only allowed for durable databases"); } checkClosed(); DurablePageDb pageDb = (DurablePageDb) mPageDb; return pageDb.beginSnapshot(this); }