public class SearchDispatchRpcGwtServlet extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements SearchRpcService, org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
class |
SearchDispatchRpcGwtServlet.MaxAgeSoftReference<T>
An extension to SoftReference that stores an expiration time for the
value stored in the SoftReference.
|
class |
SearchDispatchRpcGwtServlet.MaxSizeMap<K,V>
This class acts like an LRU cache, automatically purging contents when it gets above a certain size.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
cachingEnabled |
protected Map<String,SearchDispatchRpcGwtServlet.MaxAgeSoftReference<SearchResultInfo>> |
searchCache |
protected int |
searchCacheMaxAgeSeconds |
protected int |
searchCacheMaxSize |
Constructor and Description |
---|
SearchDispatchRpcGwtServlet() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
SearchResultInfo |
cachingSearch(SearchRequestInfo searchRequest) |
SearchResultInfo |
search(SearchRequestInfo searchRequest)
Delegates to the service responsible for the given search type key
|
void |
setCachingEnabled(boolean cachingEnabled) |
void |
setIdTranslatorFilter(IdTranslatorFilter idTranslatorFilter) |
void |
setSearchCacheMaxAgeSeconds(int searchCacheMaxAgeSeconds) |
void |
setSearchCacheMaxSize(int searchCacheMaxSize) |
void |
setSearchDispatcher(SearchService searchDispatcher) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
protected boolean cachingEnabled
protected int searchCacheMaxSize
protected int searchCacheMaxAgeSeconds
protected Map<String,SearchDispatchRpcGwtServlet.MaxAgeSoftReference<SearchResultInfo>> searchCache
public SearchDispatchRpcGwtServlet()
public SearchResultInfo search(SearchRequestInfo searchRequest)
search
in interface SearchRpcService
searchRequest
- MissingParameterException
public SearchResultInfo cachingSearch(SearchRequestInfo searchRequest)
cachingSearch
in interface SearchRpcService
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setSearchDispatcher(SearchService searchDispatcher)
public void setIdTranslatorFilter(IdTranslatorFilter idTranslatorFilter)
public void setCachingEnabled(boolean cachingEnabled)
public void setSearchCacheMaxSize(int searchCacheMaxSize)
public void setSearchCacheMaxAgeSeconds(int searchCacheMaxAgeSeconds)
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.