From 93296e2db5208ca161240fb940531859444fa1b9 Mon Sep 17 00:00:00 2001 From: Drew Koszewnik Date: Tue, 23 May 2017 10:18:21 -0700 Subject: [PATCH] VersionMinter interface must be public --- .../java/com/netflix/hollow/api/producer/HollowProducer.java | 2 +- .../hollow/api/producer/VersionMinterWithCounter.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/HollowProducer.java b/hollow/src/main/java/com/netflix/hollow/api/producer/HollowProducer.java index 1757e03917..c510c04c5d 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/producer/HollowProducer.java +++ b/hollow/src/main/java/com/netflix/hollow/api/producer/HollowProducer.java @@ -556,7 +556,7 @@ private void announce(HollowProducer.ReadState readState) { } } - static interface VersionMinter { + public static interface VersionMinter { /** * Create a new state version.

* diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/VersionMinterWithCounter.java b/hollow/src/main/java/com/netflix/hollow/api/producer/VersionMinterWithCounter.java index 6c33a8c7d3..0a156e9f33 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/producer/VersionMinterWithCounter.java +++ b/hollow/src/main/java/com/netflix/hollow/api/producer/VersionMinterWithCounter.java @@ -17,17 +17,18 @@ */ package com.netflix.hollow.api.producer; +import com.netflix.hollow.api.producer.HollowProducer.VersionMinter; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import java.util.concurrent.atomic.AtomicInteger; /** - * Beta API subject to change. + * A {@link VersionMinter}, which combines a timestamp with a repeating 3-digit sequence number * * @author Tim Taylor {@literal} */ -class VersionMinterWithCounter implements HollowProducer.VersionMinter { +public class VersionMinterWithCounter implements HollowProducer.VersionMinter { private static AtomicInteger versionCounter = new AtomicInteger();