From 0b63e7412d258906e0a79146e1d27ecfb0ed54ff Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Thu, 6 Dec 2018 14:18:23 +0300 Subject: [PATCH] javadocs fixed --- .../src/main/java/org/redisson/api/RMap.java | 8 ++-- .../java/org/redisson/api/RMapReactive.java | 6 +-- .../main/java/org/redisson/api/RMapRx.java | 40 +++++++++++++++++++ 3 files changed, 47 insertions(+), 7 deletions(-) diff --git a/redisson/src/main/java/org/redisson/api/RMap.java b/redisson/src/main/java/org/redisson/api/RMap.java index 077da9d28..3f750baac 100644 --- a/redisson/src/main/java/org/redisson/api/RMap.java +++ b/redisson/src/main/java/org/redisson/api/RMap.java @@ -108,7 +108,7 @@ public interface RMap extends ConcurrentMap, RExpirable, RMapAsyncRCountDownLatch instance associated with key * * @param key - map key - * @return readWriteLock + * @return countdownlatch */ RCountDownLatch getCountDownLatch(K key); @@ -116,7 +116,7 @@ public interface RMap extends ConcurrentMap, RExpirable, RMapAsyncRPermitExpirableSemaphore instance associated with key * * @param key - map key - * @return readWriteLock + * @return permitExpirableSemaphore */ RPermitExpirableSemaphore getPermitExpirableSemaphore(K key); @@ -124,7 +124,7 @@ public interface RMap extends ConcurrentMap, RExpirable, RMapAsyncRSemaphore instance associated with key * * @param key - map key - * @return readWriteLock + * @return semaphore */ RSemaphore getSemaphore(K key); @@ -132,7 +132,7 @@ public interface RMap extends ConcurrentMap, RExpirable, RMapAsyncRReadWriteLock instance associated with key * * @param key - map key - * @return readWriteLock + * @return fairlock */ RLock getFairLock(K key); diff --git a/redisson/src/main/java/org/redisson/api/RMapReactive.java b/redisson/src/main/java/org/redisson/api/RMapReactive.java index 7ad3bf39a..15f260daf 100644 --- a/redisson/src/main/java/org/redisson/api/RMapReactive.java +++ b/redisson/src/main/java/org/redisson/api/RMapReactive.java @@ -441,7 +441,7 @@ public interface RMapReactive extends RExpirableReactive { * Returns RPermitExpirableSemaphore instance associated with key * * @param key - map key - * @return readWriteLock + * @return permitExpirableSemaphore */ RPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(K key); @@ -449,7 +449,7 @@ public interface RMapReactive extends RExpirableReactive { * Returns RSemaphore instance associated with key * * @param key - map key - * @return readWriteLock + * @return semaphore */ RSemaphoreReactive getSemaphore(K key); @@ -457,7 +457,7 @@ public interface RMapReactive extends RExpirableReactive { * Returns RReadWriteLock instance associated with key * * @param key - map key - * @return readWriteLock + * @return fairLock */ RLockReactive getFairLock(K key); diff --git a/redisson/src/main/java/org/redisson/api/RMapRx.java b/redisson/src/main/java/org/redisson/api/RMapRx.java index ce5042692..e462c953d 100644 --- a/redisson/src/main/java/org/redisson/api/RMapRx.java +++ b/redisson/src/main/java/org/redisson/api/RMapRx.java @@ -437,5 +437,45 @@ public interface RMapRx extends RExpirableRx { * @return iterator */ Flowable keyIterator(String pattern, int count); + + /** + * Returns RPermitExpirableSemaphore instance associated with key + * + * @param key - map key + * @return permitExpirableSemaphore + */ + RPermitExpirableSemaphoreRx getPermitExpirableSemaphore(K key); + + /** + * Returns RSemaphore instance associated with key + * + * @param key - map key + * @return semaphore + */ + RSemaphoreRx getSemaphore(K key); + + /** + * Returns RReadWriteLock instance associated with key + * + * @param key - map key + * @return fairLock + */ + RLockRx getFairLock(K key); + + /** + * Returns RReadWriteLock instance associated with key + * + * @param key - map key + * @return readWriteLock + */ + RReadWriteLockRx getReadWriteLock(K key); + + /** + * Returns RLock instance associated with key + * + * @param key - map key + * @return lock + */ + RLockRx getLock(K key); }