Package com.espertech.esper.client

Examples of com.espertech.esper.client.UpdateListener


        configurePublishersForStream(streamConfig);

        // Instantiate its publisher(s)
        final LinkedHashMap<String, UpdateListener> publishers = new LinkedHashMap<String, UpdateListener>();
        for (final PublisherConfig route : streamConfig.getPublishers()) {
            final UpdateListener updateListener = instantiateUpdateListener(route);
            publishers.put(route.getType(), updateListener);
            publisherInstances.put(streamConfig.getName(), updateListener);
        }

        // Add the stream in the Esper engine
View Full Code Here


            else if (constructor.getParameterTypes().length == 1) {
                configConstructor = constructor;
            }
        }

        final UpdateListener listener;

        if (configConstructor != null) {
            final Class listenerConfigClass = configConstructor.getParameterTypes()[0];
            listener = (UpdateListener) configConstructor.newInstance(listenerConfigClass.cast(publisherConfig));
        }
View Full Code Here

    }

    @Test(groups = "fast")
    public void testInstantiateListener() throws Exception
    {
        final UpdateListener listener = PublishersCompiler.instantiateUpdateListener(publisherConfig);
        assertTrue(listener instanceof DebugListener);
    }
View Full Code Here

TOP

Related Classes of com.espertech.esper.client.UpdateListener

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.