jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r732343 - in /jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client: AbstractRepositoryConfig.java spilogger/RepositoryConfigImpl.java
Date Wed, 07 Jan 2009 14:01:57 GMT
Author: jukka
Date: Wed Jan  7 06:01:56 2009
New Revision: 732343

URL: http://svn.apache.org/viewvc?rev=732343&view=rev
Log:
JCR-1904: Make observation polling time configurable

Add the new getPollTimeout() method to relevant spi-client classes.

Modified:
    jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/AbstractRepositoryConfig.java
    jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/spilogger/RepositoryConfigImpl.java

Modified: jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/AbstractRepositoryConfig.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/AbstractRepositoryConfig.java?rev=732343&r1=732342&r2=732343&view=diff
==============================================================================
--- jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/AbstractRepositoryConfig.java
(original)
+++ jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/AbstractRepositoryConfig.java
Wed Jan  7 06:01:56 2009
@@ -31,6 +31,8 @@
     private final CacheBehaviour cacheBehaviour;
     private final int itemCacheSize;
 
+    private final int pollTimeout = 1000; // ms
+
     protected AbstractRepositoryConfig() {
         this(CacheBehaviour.INVALIDATE, DEFAULT_ITEM_CACHE_SIZE);
     }
@@ -54,4 +56,9 @@
     public int getItemCacheSize() {
         return itemCacheSize;
     }
-}
\ No newline at end of file
+
+    public int getPollTimeout() {
+        return pollTimeout;
+    }
+
+}

Modified: jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/spilogger/RepositoryConfigImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/spilogger/RepositoryConfigImpl.java?rev=732343&r1=732342&r2=732343&view=diff
==============================================================================
--- jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/spilogger/RepositoryConfigImpl.java
(original)
+++ jackrabbit/sandbox/spi/client/src/main/java/org/apache/jackrabbit/client/spilogger/RepositoryConfigImpl.java
Wed Jan  7 06:01:56 2009
@@ -45,10 +45,14 @@
         return config.getItemCacheSize();
     }
 
+    public int getPollTimeout() {
+        return config.getPollTimeout();
+    }
+
     public RepositoryService getRepositoryService() throws RepositoryException {
         if (service == null) {
             service  = new RepositoryServiceLogger(config.getRepositoryService(), writer);
         }
         return service;
     }
-}
\ No newline at end of file
+}



Mime
View raw message