Code example for LoadingCache

Methods: invalidateAll

0
        //noinspection ResultOfMethodCallIgnored 
        new File(filename).getParentFile().mkdirs();
        try (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(filename))) {
          oos.writeLong(currentPointer);
        } 
        buffers.invalidateAll();
      } 
    } 
  } 
 
  public static class IndexEntry { 
    private AtomicInteger numRecords;
    private final long[] pointers;
    private final long[] minIds;
    private long minId;
 
    public IndexEntry(AtomicInteger numRecords, long minId, long[] pointers, long[] minIds) {
      this.numRecords = numRecords;
      this.minId = minId;
      this.pointers = pointers;
Contextual code suggestions in your IDE  Get Codota for Java