Home | History | Annotate | Download | only in util

Lines Matching refs:edit

75  * <p>Clients call {@link #edit} to create or update the values of an entry. An
77 * edited then {@link #edit} will return null.
86 * Every {@link #edit} call must be matched by a call to {@link Editor#commit}
96 * an error occurs while writing a cache value, the edit will fail silently.
168 * a sequence number each time an edit is committed. A snapshot is stale if
511 * edit is in progress.
513 public Editor edit(String key) throws IOException {
514 return edit(key, ANY_SEQUENCE_NUMBER);
517 private synchronized Editor edit(String key, long expectedSequenceNumber) throws IOException {
529 return null; // another edit is in progress
571 // if this edit is creating the entry for the first time, every index must have a value
576 throw new IllegalStateException("edit didn't create file " + i);
743 * entry has changed since this snapshot was created or if another edit
746 public Editor edit() throws IOException {
747 return DiskLruCache.this.edit(key, sequenceNumber);
810 * when writing to the filesystem, this edit will be aborted when
837 * Commits this edit so it is visible to readers. This releases the
838 * edit lock so another edit may be started on the same key.
850 * Aborts this edit. This releases the edit lock so another edit may be
905 /** The ongoing edit or null if this entry is not being edited. */
908 /** The sequence number of the most recently committed edit to this entry. */