KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > cache > StaleCacheException


1 package net.suberic.pooka.cache;
2 import javax.mail.MessagingException JavaDoc;
3
4 public class StaleCacheException extends MessagingException JavaDoc {
5     long cacheValidity;
6     long requestedValidity;
7
8     public StaleCacheException(long validityInCache, long validityRequested) {
9     super();
10     cacheValidity = validityInCache;
11     requestedValidity = validityRequested;
12     }
13
14     public long getCacheValidity() { return cacheValidity; }
15
16     public long getRequstedValidity() { return requestedValidity; }
17 }
18
Popular Tags