
io.honeycomb.libhoney.transport.batch.ClockProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libhoney-java Show documentation
Show all versions of libhoney-java Show documentation
The Java client for sending events honeycomb
The newest version!
package io.honeycomb.libhoney.transport.batch;
/**
* Simple interface to encapsulate the provision of timestamp.
* Useful to switch out the real clock with a mock clock in testing.
*/
public interface ClockProvider {
/**
* @return the current time in millis (since the epoch).
*/
long getWallTime();
/**
* Used for measuring elapsed time, not system or wall-clock time.
* @return time in nanoseconds
*/
long getMonotonicTime();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy