Skip to content

Commit aa4069b

Browse files
committed
Fixing cache-ehcache plugin javadov failures
Signed-off-by: Sagar Upadhyaya <[email protected]>
1 parent e846ab6 commit aa4069b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

plugins/cache-ehcache/src/main/java/org/opensearch/cache/store/disk/EhcacheDiskCache.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public void put(K key, V value) {
266266
* @param key Type of key
267267
* @param loader loader to load the value in case key is missing
268268
* @return value
269-
* @throws Exception
269+
* @throws Exception when either internal get or put calls fail.
270270
*/
271271
@Override
272272
public V computeIfAbsent(K key, LoadAwareCacheLoader<K, V> loader) throws Exception {
@@ -367,7 +367,7 @@ public Iterable<K> keys() {
367367

368368
/**
369369
* Gives the current count of keys in disk cache.
370-
* @return
370+
* @return current count of keys
371371
*/
372372
@Override
373373
public long count() {
@@ -576,7 +576,7 @@ public Builder() {}
576576

577577
/**
578578
* Sets the desired cache type.
579-
* @param cacheType
579+
* @param cacheType cache type
580580
* @return builder
581581
*/
582582
public Builder<K, V> setCacheType(CacheType cacheType) {
@@ -626,7 +626,7 @@ public Builder<K, V> setThreadPoolAlias(String threadPoolAlias) {
626626

627627
/**
628628
* Cache alias
629-
* @param diskCacheAlias
629+
* @param diskCacheAlias disk cache alias
630630
* @return builder
631631
*/
632632
public Builder<K, V> setDiskCacheAlias(String diskCacheAlias) {

server/src/main/java/org/opensearch/common/cache/store/StoreAwareCacheRemovalNotification.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
package org.opensearch.common.cache.store;
1010

11+
import org.opensearch.common.annotation.ExperimentalApi;
1112
import org.opensearch.common.cache.RemovalNotification;
1213
import org.opensearch.common.cache.RemovalReason;
1314
import org.opensearch.common.cache.store.enums.CacheStoreType;
@@ -17,8 +18,9 @@
1718
* @param <K> Type of key.
1819
* @param <V> Type of value.
1920
*
20-
* @opensearch.internal
21+
* @opensearch.experimental
2122
*/
23+
@ExperimentalApi
2224
public class StoreAwareCacheRemovalNotification<K, V> extends RemovalNotification<K, V> {
2325
private final CacheStoreType cacheStoreType;
2426

0 commit comments

Comments
 (0)