openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r804085 - in /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache: DataCachePCData.java DataCachePCDataImpl.java
Date Fri, 14 Aug 2009 05:57:31 GMT
Author: ppoddar
Date: Fri Aug 14 05:57:31 2009
New Revision: 804085

URL: http://svn.apache.org/viewvc?rev=804085&view=rev
Log:
Add a method to get the original expiration time from PCData.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCData.java
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCData.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCData.java?rev=804085&r1=804084&r2=804085&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCData.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCData.java
Fri Aug 14 05:57:31 2009
@@ -32,4 +32,11 @@
      * Whether this data is timed out.
      */
     public boolean isTimedOut();
+    
+    /**
+     * Gets the original timeout of this instance.
+     *  
+     * @return -1 for no timeout ever.
+     */
+    public long getTimeOut();
 }

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java?rev=804085&r1=804084&r2=804085&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java
Fri Aug 14 05:57:31 2009
@@ -59,6 +59,10 @@
     public boolean isTimedOut() {
         return _exp != -1 && _exp < System.currentTimeMillis();
     }
+    
+    public long getTimeOut() {
+        return _exp;
+    }
 
     public synchronized Object getData(int index) {
         return super.getData(index);



Mime
View raw message