Package com.netflix.astyanax

Examples of com.netflix.astyanax.Clock


public class TimeUUIDTest {
    @Test
    @Ignore
    public void testMicrosResolution() {
        Clock clock = new MicrosecondsSyncClock();
        long time = clock.getCurrentTime();

        UUID uuid = TimeUUIDUtils.getUniqueTimeUUIDinMicros();
        long uuidTime = TimeUUIDUtils.getMicrosTimeFromUUID(uuid);

        Assert.assertEquals(time / 10000, uuidTime / 10000);
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.Clock

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.