You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/10/24 10:41:41 UTC

[camel] 01/02: CAMEL-20035: Added javadoc

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch bean-leak
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 25cd55742cc1c82cdd55665e06aa777711d4fd40
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Oct 24 09:16:14 2023 +0200

    CAMEL-20035: Added javadoc
---
 .../java/org/apache/camel/support/LRUCache.java     | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/LRUCache.java b/core/camel-support/src/main/java/org/apache/camel/support/LRUCache.java
index bc474a98793..e4bd04f6395 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/LRUCache.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/LRUCache.java
@@ -18,18 +18,39 @@ package org.apache.camel.support;
 
 import java.util.Map;
 
+/**
+ * A least-recently-used cache.
+ */
 public interface LRUCache<K, V> extends Map<K, V> {
 
+    /**
+     * Clears the cache
+     */
     void cleanUp();
 
+    /**
+     * Reset usage statistics
+     */
     void resetStatistics();
 
+    /**
+     * Gets the number of evicted elements
+     */
     long getEvicted();
 
+    /**
+     * Gets the number of cache misses.
+     */
     long getMisses();
 
+    /**
+     * Gets the number of cache hits.
+     */
     long getHits();
 
+    /**
+     * Maximum cache capacity.
+     */
     int getMaxCacheSize();
 
 }