Package com.netflix.suro.input.thrift

Examples of com.netflix.suro.input.thrift.MessageSetSerDe


public class TestMessageSetSerDe {
    @Test
    public void test() {
        TMessageSet messageSet = TestConnectionPool.createMessageSet(100);
        MessageSetSerDe serde = new MessageSetSerDe();
        byte[] payload = serde.serialize(messageSet);
        TMessageSet d = serde.deserialize(payload);

        assertTrue(Arrays.equals(d.getMessages(), messageSet.getMessages()));

        List<Message> messageList = new LinkedList<Message>();
        for (Message m : new MessageSetReader(messageSet)) {
View Full Code Here


            try {
                queue = new FileBlockingQueue<TMessageSet>(
                        config.getFileQueuePath(),
                        config.getFileQueueName(),
                        new Period(config.getFileQueueGCPeriod()).toStandardSeconds().getSeconds(),
                        new MessageSetSerDe(),
                        config.getFileQueueSizeLimit());
            } catch (IOException e) {
                logger.error("Exception on initializing Queue4Server: " + e.getMessage(), e);
            }
        }
View Full Code Here

TOP

Related Classes of com.netflix.suro.input.thrift.MessageSetSerDe

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.