Home | History | Annotate | Download | only in util

Lines Matching defs:Editor

76  * entry may have only one editor at one time; if a value is not available to be
86 * Every {@link #edit} call must be matched by a call to {@link Editor#commit}
87 * or {@link Editor#abort}. Committing is atomic: a read observes the full set
391 entry.currentEditor = new Editor(entry);
510 * Returns an editor for the entry named {@code key}, or null if another
513 public Editor edit(String key) throws IOException {
517 private synchronized Editor edit(String key, long expectedSequenceNumber) throws IOException {
532 Editor editor = new Editor(entry);
533 entry.currentEditor = editor;
538 return editor;
565 private synchronized void completeEdit(Editor editor, boolean success) throws IOException {
566 Entry entry = editor.entry;
567 if (entry.currentEditor != editor) {
575 editor.abort();
742 * Returns an editor for this snapshot's entry, or null if either the
746 public Editor edit() throws IOException {
774 public final class Editor {
778 private Editor(Entry entry) {
906 private Editor currentEditor;