@Stability.Internal public class Expiry extends Object
Modifier and Type | Method and Description |
---|---|
static Expiry |
absolute(Instant expiry) |
com.couchbase.client.core.api.kv.CoreExpiry |
encode() |
static Expiry |
none() |
static Expiry |
relative(Duration expiry) |
String |
toString() |
public static Expiry none()
public static Expiry relative(Duration expiry)
com.couchbase.client.core.error.InvalidArgumentException
- if the Duration is non-zero and less than 1 second, or greater than 18,250 days (~50 years)public static Expiry absolute(Instant expiry)
com.couchbase.client.core.error.InvalidArgumentException
- if the Instant is after 2106-02-07T06:28:15Z, or is non-zero and before 1970-02-01T00:00:00Zpublic com.couchbase.client.core.api.kv.CoreExpiry encode()
Copyright © 2024 Couchbase, Inc.. All rights reserved.