All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kairosdb.eventbus.Publisher Maven / Gradle / Ivy

Go to download

KairosDB is a time series database that stores numeric values along with key/value tags to a nosql data store. Currently supported backends are Cassandra and H2. An H2 implementation is provided for development work.

The newest version!
package org.kairosdb.eventbus;


import static java.util.Objects.requireNonNull;

public class Publisher
{
	private final Pipeline m_pipeline;

	public Publisher(Pipeline pipeline)
	{
		m_pipeline = requireNonNull(pipeline);
	}

	@SuppressWarnings("unchecked")
	public void post(T event)
	{
		for (FilterSubscriber filterSubscriber : m_pipeline)
		{
			event = (T)filterSubscriber.dispatchEvent(event);
			if (event == null)
			{
				//Event was filtered no need to continue
				break;
			}
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy