@Test(expected = SegmentNotFoundException.class) public void snfeFromUncachedSegment() { id1.getSegment(); }
@NotNull public abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader) throws ExecutionException;
SegmentCache { @NotNull public abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader) throws ExecutionException; }
SegmentCache { @NotNull public abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader) throws ExecutionException;  }
SegmentCache { @NotNull public abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader) throws ExecutionException;  @NotNull static SegmentCache newSegmentCache(long cacheSizeMB); @NotNull abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader); abstract void putSegment(@NotNull Segment segment); abstract void clear(); @NotNull abstract AbstractCacheStats getCacheStats(); abstract void recordHit(); }
SegmentCache { @NotNull public abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader) throws ExecutionException;  @NotNull static SegmentCache newSegmentCache(long cacheSizeMB); @NotNull abstract Segment getSegment(@NotNull SegmentId id, @NotNull Callable<Segment> loader); abstract void putSegment(@NotNull Segment segment); abstract void clear(); @NotNull abstract AbstractCacheStats getCacheStats(); abstract void recordHit(); static final int DEFAULT_SEGMENT_CACHE_MB; }