
com.ebay.jetstream.event.processor.esper.EsperDeclaredEvents Maven / Gradle / Ivy
The newest version!
/*
Pulsar
Copyright (C) 2013-2015 eBay Software Foundation
Licensed under the GPL v2 license. See LICENSE for full terms.
*/
package com.ebay.jetstream.event.processor.esper;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import com.ebay.jetstream.config.AbstractNamedBean;
import com.ebay.jetstream.xmlser.XSerializable;
/**
* @author trobison, derived from original work of msikes
*/
public final class EsperDeclaredEvents extends AbstractNamedBean implements Serializable, XSerializable {
private static final long serialVersionUID = -8107344168985484754L;
private final Collection m_listEventTypes = new ArrayList();
/**
* Gets all registered Event Types with their fields
*
* @return the collection of event types
*/
@SuppressWarnings("unchecked")
public Collection getEventTypes() {
return (Collection)((ArrayList)m_listEventTypes).clone();
}
public void setEventTypes(Collection eventTypes) {
m_listEventTypes.clear();
m_listEventTypes.addAll(eventTypes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy