@Test public void freshTest() { when(fileSystem.getRecordState(TimeUnit.DAYS, 1L, resolvedPath)) .thenReturn(RecordState.FRESH); assertThat(fileSystemPersister.getRecordState(simple)).isEqualTo(RecordState.FRESH); }
@Nonnull @Override public RecordState getRecordState(@Nonnull Key key) { return fileSystem.getRecordState(expirationUnit, expirationDuration, pathResolver.resolve(key)); }
FileSystemRecordPersister implements Persister<BufferedSource, Key>, RecordProvider<Key> { @Nonnull @Override public RecordState getRecordState(@Nonnull Key key) { return fileSystem.getRecordState(expirationUnit, expirationDuration, pathResolver.resolve(key)); } }
FileSystemRecordPersister implements Persister<BufferedSource, Key>, RecordProvider<Key> { @Nonnull @Override public RecordState getRecordState(@Nonnull Key key) { return fileSystem.getRecordState(expirationUnit, expirationDuration, pathResolver.resolve(key)); } private  FileSystemRecordPersister(FileSystem fileSystem, PathResolver<Key> pathResolver,
                                      long expirationDuration,
                                      @Nonnull TimeUnit expirationUnit); }
FileSystemRecordPersister implements Persister<BufferedSource, Key>, RecordProvider<Key> { @Nonnull @Override public RecordState getRecordState(@Nonnull Key key) { return fileSystem.getRecordState(expirationUnit, expirationDuration, pathResolver.resolve(key)); } private  FileSystemRecordPersister(FileSystem fileSystem, PathResolver<Key> pathResolver,
                                      long expirationDuration,
                                      @Nonnull TimeUnit expirationUnit); @Nonnull static FileSystemRecordPersister<T> create(FileSystem fileSystem,
                                                          PathResolver<T> pathResolver,
                                                          long expirationDuration,
                                                          @Nonnull TimeUnit expirationUnit); @Nonnull @Override RecordState getRecordState(@Nonnull Key key); @Nonnull @Override Maybe<BufferedSource> read(@Nonnull Key key); @Nonnull @Override Single<Boolean> write(@Nonnull Key key, @Nonnull BufferedSource bufferedSource); }
FileSystemRecordPersister implements Persister<BufferedSource, Key>, RecordProvider<Key> { @Nonnull @Override public RecordState getRecordState(@Nonnull Key key) { return fileSystem.getRecordState(expirationUnit, expirationDuration, pathResolver.resolve(key)); } private  FileSystemRecordPersister(FileSystem fileSystem, PathResolver<Key> pathResolver,
                                      long expirationDuration,
                                      @Nonnull TimeUnit expirationUnit); @Nonnull static FileSystemRecordPersister<T> create(FileSystem fileSystem,
                                                          PathResolver<T> pathResolver,
                                                          long expirationDuration,
                                                          @Nonnull TimeUnit expirationUnit); @Nonnull @Override RecordState getRecordState(@Nonnull Key key); @Nonnull @Override Maybe<BufferedSource> read(@Nonnull Key key); @Nonnull @Override Single<Boolean> write(@Nonnull Key key, @Nonnull BufferedSource bufferedSource);  }