| com.xoetrope.service.XCachingService
XCachingService | public class XCachingService extends ServiceProxy (Code) | | A simple caching proxy. Compares the request to cached objects and returns
the cache result if the request matches.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.8 $
|
cachable | protected boolean cachable(Code) | | |
currentProject | protected XProject currentProject(Code) | | The owner project and the context in which this object operates.
|
XCachingService | public XCachingService()(Code) | | Public constructor
|
call | public Object call(String method, ServiceContext context) throws ServiceProxyException(Code) | | |
call | public Object call(String method, ServiceContext context, boolean store) throws ServiceProxyException(Code) | | Call this proxy with the specified arguments
the result of the call Parameters: context - The ServiceContext contain pass and return parameters Parameters: method - the name of the service being called throws: net.xoetrope.optional.service.ServiceProxyException - Throw an exception if there is a problem with the call |
getNumStoredCalls | public int getNumStoredCalls()(Code) | | Get the number of stored calls.
the number of calls awaiting completion |
loadCachedCalls | protected void loadCachedCalls()(Code) | | Load any stored instances of calls from the cache.
|
setCachable | public void setCachable(boolean b)(Code) | | Sets a flag to indicate if the method being called can be cached.
Parameters: b - true to allow caching |
setTTL | public void setTTL(long ms)(Code) | | Set the time to live for cache entries
Parameters: ms - the ttl in milliseconds |
|
|