Home | History | Annotate | Download | only in io

Lines Matching defs:Editor

65  * entry may have only one editor at one time; if a value is not available to be
75 * Every {@link #edit} call must be matched by a call to {@link Editor#commit}
76 * or {@link Editor#abort}. Committing is atomic: a read observes the full set
292 entry.currentEditor = new Editor(entry);
408 * Returns an editor for the entry named {@code key}, or null if another
411 public Editor edit(String key) throws IOException {
415 private synchronized Editor edit(String key, long expectedSequenceNumber) throws IOException {
430 Editor editor = new Editor(entry);
431 entry.currentEditor = editor;
436 return editor;
463 private synchronized void completeEdit(Editor editor, boolean success) throws IOException {
464 Entry entry = editor.entry;
465 if (entry.currentEditor != editor) {
472 if (!editor.written[i]) {
473 editor.abort();
477 editor.abort();
644 * Returns an editor for this snapshot's entry, or null if either the
648 public Editor edit() throws IOException {
676 public final class Editor {
681 private Editor(Entry entry) {
813 private Editor currentEditor;