public interface ITtlTimeProvider
S3Guard.ttlTimeProvider. By doing this, getNow() can return any
value preferred and flaky tests could be avoided. By default getNow()
returns the EPOCH in runtime.
Time is measured in milliseconds,| Modifier and Type | Method and Description |
|---|---|
long |
getMetadataTtl()
The TTL of the metadata.
|
long |
getNow()
The current time in milliseconds.
|
long getNow()
long getMetadataTtl()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.