@Test public void avoidNameClashWhenFileWithSameNameIsAlreadyInSameZip() throws Exception { setMaxArchiveSizeDefault(); cache = createCache(new TestRandomGenerator()); cache.add(createRequestRecordNormal()); assertZip(expectedNormalSizeRequestEntryName(), getArchiveBytes()); cache.add(createRequestRecordNormal()); assertZip(expectedConflictingEntryNames(), getArchiveBytes()); }
void add(MessageRecord messageRecord) throws Exception { try { validateMessageRecord(messageRecord); handleRotation(); cacheRecord(messageRecord); updateState(); } catch (Exception e) { handleCacheError(e); } }
LogArchiveCache implements Closeable { void add(MessageRecord messageRecord) throws Exception { try { validateMessageRecord(messageRecord); handleRotation(); cacheRecord(messageRecord); updateState(); } catch (Exception e) { handleCacheError(e); } } }
LogArchiveCache implements Closeable { void add(MessageRecord messageRecord) throws Exception { try { validateMessageRecord(messageRecord); handleRotation(); cacheRecord(messageRecord); updateState(); } catch (Exception e) { handleCacheError(e); } } LogArchiveCache(Supplier<String> randomGenerator,
                    LinkingInfoBuilder linkingInfoBuilder,
                    Path workingDir); }
LogArchiveCache implements Closeable { void add(MessageRecord messageRecord) throws Exception { try { validateMessageRecord(messageRecord); handleRotation(); cacheRecord(messageRecord); updateState(); } catch (Exception e) { handleCacheError(e); } } LogArchiveCache(Supplier<String> randomGenerator,
                    LinkingInfoBuilder linkingInfoBuilder,
                    Path workingDir); @Override void close(); }
LogArchiveCache implements Closeable { void add(MessageRecord messageRecord) throws Exception { try { validateMessageRecord(messageRecord); handleRotation(); cacheRecord(messageRecord); updateState(); } catch (Exception e) { handleCacheError(e); } } LogArchiveCache(Supplier<String> randomGenerator,
                    LinkingInfoBuilder linkingInfoBuilder,
                    Path workingDir); @Override void close();  }