public class SettableTimestampOracle extends TimestampOracle
TimestampOracle that allows setting the current time. This is useful
to allow deterministic behavior during testing.| Constructor and Description |
|---|
SettableTimestampOracle() |
| Modifier and Type | Method and Description |
|---|---|
long |
currentTime()
Returns the current wall clock time in milliseconds, multiplied by the required precision.
|
void |
setCurrentTime(long time) |
getUniqueTimestamppublic long currentTime()
TimestampOraclecurrentTime in class TimestampOraclepublic void setCurrentTime(long time)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.