Package com.fasterxml.uuid.ext

Examples of com.fasterxml.uuid.ext.FileBasedTimestampSynchronizer


    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);
        }
View Full Code Here

TOP

Related Classes of com.fasterxml.uuid.ext.FileBasedTimestampSynchronizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.