@Stability.Internal public class ExpiryUtils extends Object
Modifier and Type | Method and Description |
---|---|
static long |
getAdjustedExpirySeconds(Duration duration,
EventBus eventBus)
If the duration is less than 30 days, returns the number of seconds
in the duration, otherwise returns the current time in Unix epoch seconds
plus the number of seconds in the duration.
|
Copyright © 2020 Couchbase, Inc.. All rights reserved.