hollow/src/main/java/com/netflix/hollow/api/producer/VersionMinterWithCounter.java
public long mint() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        String formattedDate = dateFormat.format(new Date());

        String versionStr = formattedDate + String.format("%03d", versionCounter.incrementAndGet() % 1000);

        return Long.parseLong(versionStr);
    }
public long mint() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss");
        dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        String formattedDate = dateFormat.format(new Date());

        String versionStr = formattedDate + String.format("%03d", versionCounter.incrementAndGet() % 1000);

        return Long.parseLong(versionStr);
    }
public long mint ( ) { SimpleDateFormat dateFormat = new SimpleDateFormat ( "yyyyMMddHHmmss" ) ; dateFormat . setTimeZone ( TimeZone . getTimeZone ( "UTC" ) ) ; String formattedDate = dateFormat . format ( new Date ( ) ) ; String versionStr = formattedDate + String . format ( "%03d" , versionCounter . incrementAndGet ( ) % 1000 ) ; return Long . parseLong ( versionStr ) ; }
Create a new state version.<p>

State versions should be ascending -- later states have greater versions.<p>

Here we use an easily readable timestamp format.

@return a new state version
Create a new state version . <p >