/** * This method should always be called instead of System.currentTimeMillis() so that time can be controlled by the * TimeSource. * * @return The current time according to the TimeSource */ private int getTime() { return this.timeSource.now(); }
/** * This method should always be called instead of System.currentTimeMillis() so that time can be controlled by the * TimeSource. * * @return The current time according to the TimeSource */ private int getTime() { return this.timeSource.now(); }
public SerializedEntry(final T deserialized, final byte[] serialized, final TimeSource timeSource) { this(deserialized, serialized, timeSource.now()); }
public TimestampedValue createTimestampedValue(final Element element) { return new IdentityModeElementData(element, TimeUtil.toMillis(store.getBackend().getTimeSource().now())); }