protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
final List<Thread> threads = new ArrayList<Thread>(); final TimeBasedGenerator timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); final ConcurrentSkipListSet<String> generatedIds = new ConcurrentSkipListSet<String>(); final ConcurrentSkipListSet<String> duplicatedIds = new ConcurrentSkipListSet<String>();
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
private UuidGeneratorImpl() { EthernetAddress nic = EthernetAddress.fromInterface(); generator = Generators.timeBasedGenerator(nic); }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (StrongUuidGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
protected void ensureGeneratorInitialized() { if (timeBasedGenerator == null) { synchronized (UuidIdGenerator.class) { if (timeBasedGenerator == null) { timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } } } }
public UUIDTimeIDGenerator() { try { uuid1 = new File(System.getProperty("java.io.tmpdir") + File.separator + "uuid1.lck"); uuid2 = new File(System.getProperty("java.io.tmpdir") + File.separator + "uuid2.lck"); synchronizer = new FileBasedTimestampSynchronizer(uuid1, uuid2); generator = Generators.timeBasedGenerator(EthernetAddress.fromInterface(), synchronizer); } catch (IOException e) { log.error("error initialising time-based UUID generator",e); } }
public UUIDTimeIDGenerator() { try { uuid1 = new File(System.getProperty("java.io.tmpdir") + File.separator + "uuid1.lck"); uuid2 = new File(System.getProperty("java.io.tmpdir") + File.separator + "uuid2.lck"); synchronizer = new FileBasedTimestampSynchronizer(uuid1, uuid2); generator = Generators.timeBasedGenerator(EthernetAddress.fromInterface(), synchronizer); } catch (IOException e) { log.error("error initialising time-based UUID generator",e); } }
private TimeBasedGenerator newTimeBasedGenerator(String ethernet) { if (ethernet == null) { return Generators.timeBasedGenerator(); } if ("interface".equalsIgnoreCase(ethernet)) { return Generators.timeBasedGenerator(EthernetAddress.fromInterface()); } return Generators.timeBasedGenerator(EthernetAddress.valueOf(ethernet)); } }
final List<Thread> threads = new ArrayList<Thread>(); final TimeBasedGenerator timeBasedGenerator = Generators.timeBasedGenerator(EthernetAddress.fromInterface()); final ConcurrentSkipListSet<String> generatedIds = new ConcurrentSkipListSet<String>(); final ConcurrentSkipListSet<String> duplicatedIds = new ConcurrentSkipListSet<String>();