@Test public void doNotAllowNullMessageRecords() throws Exception { thrown.expect(IllegalArgumentException.class); cache.add(null); thrown.expectMessage("Message record to be archived must not be null"); }
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();  }