diff --git a/redisson/src/main/java/org/redisson/api/RExpirableReactive.java b/redisson/src/main/java/org/redisson/api/RExpirableReactive.java index 22d70d2d1..280500f93 100644 --- a/redisson/src/main/java/org/redisson/api/RExpirableReactive.java +++ b/redisson/src/main/java/org/redisson/api/RExpirableReactive.java @@ -42,7 +42,7 @@ public interface RExpirableReactive extends RObjectReactive { Mono expire(long timeToLive, TimeUnit timeUnit); /** - * Use {@link #expireAt(Instant)} instead + * Use {@link #expire(Instant)} instead * * @param timestamp - expire date * @return true if the timeout was set and false if not @@ -51,7 +51,7 @@ public interface RExpirableReactive extends RObjectReactive { Mono expireAt(Date timestamp); /** - * Use {@link #expireAt(Instant)} instead + * Use {@link #expire(Instant)} instead * * @param timestamp - expire date in milliseconds (Unix timestamp) * @return true if the timeout was set and false if not @@ -66,7 +66,7 @@ public interface RExpirableReactive extends RObjectReactive { * @param instant - expire date * @return true if the timeout was set and false if not */ - Mono expireAt(Instant instant); + Mono expire(Instant instant); /** * Sets an expiration date for this object only if it has been already set. diff --git a/redisson/src/main/java/org/redisson/api/RExpirableRx.java b/redisson/src/main/java/org/redisson/api/RExpirableRx.java index 328374459..de100a7b5 100644 --- a/redisson/src/main/java/org/redisson/api/RExpirableRx.java +++ b/redisson/src/main/java/org/redisson/api/RExpirableRx.java @@ -42,7 +42,7 @@ public interface RExpirableRx extends RObjectRx { Single expire(long timeToLive, TimeUnit timeUnit); /** - * Use {@link #expireAt(Instant)} instead + * Use {@link #expire(Instant)} instead * * @param timestamp - expire date * @return true if the timeout was set and false if not @@ -51,7 +51,7 @@ public interface RExpirableRx extends RObjectRx { Single expireAt(Date timestamp); /** - * Use {@link #expireAt(Instant)} instead + * Use {@link #expire(Instant)} instead * * @param timestamp - expire date in milliseconds (Unix timestamp) * @return true if the timeout was set and false if not @@ -66,7 +66,7 @@ public interface RExpirableRx extends RObjectRx { * @param instant - expire date * @return true if the timeout was set and false if not */ - Single expireAt(Instant instant); + Single expire(Instant instant); /** * Sets an expiration date for this object only if it has been already set.