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

net.sf.jabb.dstream.StreamDataSupplierWithId Maven / Gradle / Ivy

There is a newer version: 1.0.73
Show newest version
/**
 * Created by mjohnson on 2/29/2016.
 */
package net.sf.jabb.dstream;

import java.time.Instant;

/**
 * Data structure for a StreamDataSupplier and an ID.
 *
 * @param 	type of the message
 */
public interface StreamDataSupplierWithId {
	StreamDataSupplierWithIdAndPositionRange withRange(String fromPosition, String toPosition);
	
	StreamDataSupplierWithIdAndEnqueuedTimeRange withRange(Instant fromTime, Instant toTime);
	
	/**
	 * Get the ID of the stream. Useful for logging
	 * @return	the ID
	 */
	String getId();
	
	/**
	 * Get the stream data supplier
	 * @return	the stream data supplier
	 */
	StreamDataSupplier getSupplier();
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy