From 658cc3e14074b6a4bea0f65fe9991cb2a3d9b2e5 Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 17 Feb 2022 12:18:14 +0300 Subject: [PATCH] Fixed - expireAt(Instant instant) method of RExpirableReactive and RExpirableRx interfaces doesn't work #4148 --- .../src/main/java/org/redisson/api/RExpirableReactive.java | 6 +++--- redisson/src/main/java/org/redisson/api/RExpirableRx.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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.