Move time UUID nodeid back to the factory
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / uuid / TimeUuidState.java
index d883b8d8585ccc9d88b60f4f8de2d3b7fd0b37e6..74e6b698012ff4de2f2a562f1072296db7cf9021 100644 (file)
@@ -15,8 +15,6 @@ public interface TimeUuidState {
        /** Start of the Gregorian time, used by time-based UUID (v1). */
        final static Instant GREGORIAN_START = ZonedDateTime.of(1582, 10, 15, 0, 0, 0, 0, ZoneOffset.UTC).toInstant();
 
-       byte[] getNodeId();
-
        long useTimestamp();
 
        long getClockSequence();
@@ -26,18 +24,9 @@ public interface TimeUuidState {
        }
 
        static class Holder {
-               byte[] nodeId = new byte[6];
                long lastTimestamp;
                long clockSequence;
 
-               public byte[] getNodeId() {
-                       return nodeId;
-               }
-
-               public void setNodeId(byte[] nodeId) {
-                       this.nodeId = nodeId;
-               }
-
                public long getLastTimestamp() {
                        return lastTimestamp;
                }