mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-05-25 18:34:43 +00:00
21 lines
655 B
Java
21 lines
655 B
Java
package org.rrd4j.data;
|
|
|
|
/**
|
|
* Interface to be used for custom datasources.
|
|
*
|
|
* <p>If you wish to use a custom datasource in a graph, you should create a class implementing this interface
|
|
* that represents that datasource, and then pass this class on to the RrdGraphDef.</p>
|
|
* @since 3.7
|
|
*/
|
|
@FunctionalInterface
|
|
public interface IPlottable {
|
|
/**
|
|
* Retrieves datapoint value based on a given timestamp.
|
|
* Use this method if you only have one series of data in this class.
|
|
*
|
|
* @param timestamp Timestamp in seconds for the datapoint.
|
|
* @return Double value of the datapoint.
|
|
*/
|
|
double getValue(long timestamp);
|
|
}
|