net.sf.jabb.dstream.StreamDataSupplierWithId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jabb-core-java8 Show documentation
Show all versions of jabb-core-java8 Show documentation
Additions to jabb-core that require Java 8
/**
* 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