public void onRemove(Entry<Key, Value> removed) { size.decrementAndGet(); flushCache(); }
@Override synchronized public void clear(Transaction tx) throws IOException { for (Iterator<ListNode<Key,Value>> iterator = listNodeIterator(tx); iterator.hasNext(); ) { ListNode<Key,Value>candidate = iterator.next(); candidate.clear(tx); // break up the transaction tx.commit(); } flushCache(); size.set(0); }
public void storeNode(Transaction tx, ListNode<Key,Value> node, boolean overflow) throws IOException { tx.store(node.getPage(), marshaller, overflow); flushCache(); }
if (entry.getKey().equals(key)) { iterator.remove(); flushCache(); return entry.getValue(); flushCache(); if (entry.getKey().equals(key)) { iterator.remove(); flushCache(); return entry.getValue();
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
lastGetEntryCache.setValue(value); lastGetNodeCache.storeUpdate(tx); flushCache(); return oldValue; oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue; flushCache(); oldValue = entry.setValue(value); ((ListIterator) iterator).getCurrent().storeUpdate(tx); flushCache(); return oldValue; flushCache();
public void onRemove(Entry<Key, Value> removed) { size.decrementAndGet(); flushCache(); }
public void onRemove(Entry<Key, Value> removed) { size.decrementAndGet(); flushCache(); }
@Override synchronized public void clear(Transaction tx) throws IOException { for (Iterator<ListNode<Key,Value>> iterator = listNodeIterator(tx); iterator.hasNext(); ) { ListNode<Key,Value>candidate = iterator.next(); candidate.clear(tx); // break up the transaction tx.commit(); } flushCache(); size.set(0); }
@Override synchronized public void clear(Transaction tx) throws IOException { for (Iterator<ListNode<Key,Value>> iterator = listNodeIterator(tx); iterator.hasNext(); ) { ListNode<Key,Value>candidate = iterator.next(); candidate.clear(tx); // break up the transaction tx.commit(); } flushCache(); size.set(0); }
@Override synchronized public void clear(Transaction tx) throws IOException { for (Iterator<ListNode<Key,Value>> iterator = listNodeIterator(tx); iterator.hasNext(); ) { ListNode<Key,Value>candidate = iterator.next(); candidate.clear(tx); // break up the transaction tx.commit(); } flushCache(); size.set(0); }
public void storeNode(Transaction tx, ListNode<Key,Value> node, boolean overflow) throws IOException { tx.store(node.getPage(), marshaller, overflow); flushCache(); }
public void storeNode(Transaction tx, ListNode<Key,Value> node, boolean overflow) throws IOException { tx.store(node.getPage(), marshaller, overflow); flushCache(); }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value add(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getTail(tx).put(tx, key, value); size.incrementAndGet(); flushCache(); return null; }
synchronized public Value addFirst(Transaction tx, Key key, Value value) throws IOException { assertLoaded(); getHead(tx).addFirst(tx, key, value); size.incrementAndGet(); flushCache(); return null; }