@Singleton public class TimestampOracleImpl extends Object implements TimestampOracle
| Constructor and Description |
|---|
TimestampOracleImpl(MetricsRegistry metrics,
TimestampStorage tsStorage,
Panicker panicker) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLast()
Returns the last timestamp assigned.
|
void |
initialize()
Allows the initialization of the Timestamp Oracle service.
|
long |
next()
Returns the next timestamp if available.
|
String |
toString() |
@Inject public TimestampOracleImpl(MetricsRegistry metrics, TimestampStorage tsStorage, Panicker panicker) throws IOException
IOExceptionpublic void initialize()
throws IOException
TimestampOracleinitialize in interface TimestampOracleIOException - raised if a problem during initialization is shown.public long next()
next in interface TimestampOraclepublic long getLast()
TimestampOraclegetLast in interface TimestampOracleCopyright © 2011–2020 Apache Software Foundation. All rights reserved.