/** * Gets the cached result for this region/key OR does the work and caches * the result, returning the result. If the result has not been cached yet, * this calls doWork() on the JCSWorkerHelper to do the work and cache the * result. This is also an opportunity to do any post processing of the * result in your CachedWorker implementation. * @param aKey * The key to get/put with on the Cache. * @param aWorker * The JCSWorkerHelper implementing Object doWork(). This gets * called if the cache get misses, and the result is put into * cache. * @return The result of doing the work, or the cached result. * @throws Exception * Throws an exception if anything goes wrong while doing the * work. */ public V getResult( K aKey, JCSWorkerHelper<V> aWorker ) throws Exception { return run( aKey, null, aWorker ); }
/** * Gets the cached result for this region/key OR does the work and caches * the result, returning the result. If the result has not been cached yet, * this calls doWork() on the JCSWorkerHelper to do the work and cache the * result. This is also an opportunity to do any post processing of the * result in your CachedWorker implementation. * @param aKey * The key to get/put with on the Cache. * @param aWorker * The JCSWorkerHelper implementing Object doWork(). This gets * called if the cache get misses, and the result is put into * cache. * @return The result of doing the work, or the cached result. * @throws Exception * Throws an exception if anything goes wrong while doing the * work. */ public V getResult( K aKey, JCSWorkerHelper aWorker ) throws Exception { return run( aKey, null, aWorker ); }
/** * Gets the cached result for this region/key OR does the work and caches * the result, returning the result. If the result has not been cached yet, * this calls doWork() on the JCSWorkerHelper to do the work and cache the * result. This is also an opportunity to do any post processing of the * result in your CachedWorker implementation. * @param aKey * The key to get/put with on the Cache. * @param aGroup * The cache group to put the result in. * @param aWorker * The JCSWorkerHelper implementing Object doWork(). This gets * called if the cache get misses, and the result is put into * cache. * @return The result of doing the work, or the cached result. * @throws Exception * Throws an exception if anything goes wrong while doing the * work. */ public V getResult( K aKey, String aGroup, JCSWorkerHelper<V> aWorker ) throws Exception { return run( aKey, aGroup, aWorker ); }
/** * Gets the cached result for this region/key OR does the work and caches * the result, returning the result. If the result has not been cached yet, * this calls doWork() on the JCSWorkerHelper to do the work and cache the * result. This is also an opertunity to do any post processing of the * result in your CachedWorker implementation. * @param aKey * The key to get/put with on the Cache. * @param aGroup * The cache group to put the result in. * @param aWorker * The JCSWorkerHelper implementing Object doWork(). This gets * called if the cache get misses, and the result is put into * cache. * @return The result of doing the work, or the cached result. * @throws Exception * Throws an exception if anything goes wrong while doing the * work. */ public V getResult( K aKey, String aGroup, JCSWorkerHelper aWorker ) throws Exception { return run( aKey, aGroup, aWorker ); }