Examples of MemoryTopicFactory


Examples of com.netflix.staash.mesh.db.memory.MemoryTopicFactory

public class TestDriver {

    public static void main(String[] args) {
        final ScheduledExecutorService executor = Executors.newScheduledThreadPool(10);
       
        final TopicRegistry    topics   = new TopicRegistry(new MemoryTopicFactory());
        final InstanceRegistry registry = new InstanceRegistry();
        final ClientFactory    factory  = new MemoryClientFactory();
        final EndpointPolicy   endpointPolicy = new ChordEndpointPolicy();
       
        topics.createTopic("test");
View Full Code Here

Examples of com.netflix.staash.mesh.db.memory.MemoryTopicFactory

import com.netflix.staash.mesh.seed.TopicSeed;

public class DummyTopicSeed implements TopicSeed {
    private static final String TOPIC_NAME = "test";
    public DummyTopicSeed() {
        final TopicRegistry    topics   = new TopicRegistry(new MemoryTopicFactory());
       
        topics.createTopic(TOPIC_NAME);
        topics.addEntry(TOPIC_NAME,  new Entry("Key1", "Value1", System.currentTimeMillis()));
        topics.addEntry(TOPIC_NAME,  new Entry("Key2", "Value2", System.currentTimeMillis()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.