blob: cfe54ddea6eb0a70236a32dfaf721e6bb918fe25 [file] [log] [blame]
package org.apache.s4.core;
import org.apache.s4.base.Event;
/**
* We use this interface to put events into objects.
*
* @param <T>
*/
public interface Streamable<T extends Event> {
/**
* Starting the stream starts the associated dequeuing thread.
*/
void start();
/**
* Put an event into the streams.
*
* @param event
*/
public void put(Event event);
/**
* Stop and close all the streams.
*/
public void close();
/**
* @return the name of this streamable object.
*/
public String getName();
}