Package com.netflix.suro.message

Examples of com.netflix.suro.message.MessageSerDe


        queue = new FileBlockingQueue<Message>(
                path,
                name,
                new Period(gcPeriod == null ? "PT1m" : gcPeriod).toStandardSeconds().getSeconds(),
                new MessageSerDe(),
                sizeLimit == 0 ? Long.MAX_VALUE : sizeLimit);
    }
View Full Code Here


    }

    @Test
    public void testMultithreaded() throws IOException, InterruptedException {
        final FileBlockingQueue<Message> queue = new FileBlockingQueue<Message>(
                tempDir.newFolder().getAbsolutePath(), "default", 3600, new MessageSerDe());

        final int threadCount = 10;
        ExecutorService executors = Executors.newFixedThreadPool(threadCount);
        final CountDownLatch latch = new CountDownLatch(threadCount + 1);
        final CountDownLatch startLatch = new CountDownLatch(1);
View Full Code Here

        }
        System.out.println("Load test finished successfully.");
    }

    private void createQueue() throws IOException {
        bigQueue = new FileBlockingQueue<Message>(tempDir.newFolder().getAbsolutePath(), "load_test", 1, new MessageSerDe());
    }
View Full Code Here

TOP

Related Classes of com.netflix.suro.message.MessageSerDe

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.