aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/measite/minidns/DNSCache.java
diff options
context:
space:
mode:
authorRene Treffer <treffer@measite.de>2014-06-22 15:29:51 +0200
committerRene Treffer <treffer@measite.de>2014-06-22 15:29:51 +0200
commit0e484dd17f85d923891460ff606b13294e8985ba (patch)
tree01b3835385c9338aec7fb9bdaf5361a25d8b5568 /src/main/java/de/measite/minidns/DNSCache.java
parent028700efe0345e764f598378cb64c5e57f980e33 (diff)
Add missing javadoc and review new code
Diffstat (limited to 'src/main/java/de/measite/minidns/DNSCache.java')
-rw-r--r--src/main/java/de/measite/minidns/DNSCache.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/de/measite/minidns/DNSCache.java b/src/main/java/de/measite/minidns/DNSCache.java
index 78e6c041..14a3a776 100644
--- a/src/main/java/de/measite/minidns/DNSCache.java
+++ b/src/main/java/de/measite/minidns/DNSCache.java
@@ -5,8 +5,19 @@ package de.measite.minidns;
*/
public interface DNSCache {
+ /**
+ * Add an an dns answer/response for a given dns question. Implementations
+ * should honor the ttl / receive timestamp.
+ * @param q The question.
+ * @param message The dns message.
+ */
void put(Question q, DNSMessage message);
+ /**
+ * Request a cached dns response.
+ * @param q The dns question.
+ * @return The dns message.
+ */
DNSMessage get(Question q);
}