Package com.fayupable.snowflake.port
Interface ClockSource
- All Known Implementing Classes:
SystemClock
public interface ClockSource
Output port that abstracts the current time source.
Allows the generator to be unit-tested without depending on System.currentTimeMillis().
-
Method Summary
-
Method Details
-
millis
long millis()
-