Package com.netflix.astyanax.recipes.queue

Examples of com.netflix.astyanax.recipes.queue.MessageContext


        for (int i = 0; i < 10; i++) {
            final List<MessageContext> m5 = consumer.readMessages(10);
            Assert.assertEquals(1, m5.size());

            long systemtime = System.currentTimeMillis();
            MessageContext m = Iterables.getFirst(m5, null);
            LOG.info("MessageTime: " + (systemtime - m.getMessage().getTrigger().getTriggerTime()));
            consumer.ackMessages(m5);
        }
    }
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.recipes.queue.MessageContext

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.