Class ResourceConfig
java.lang.Object
com.tangosol.coherence.rest.config.ResourceConfig
The ResourceConfig class encapsulates information related to a Coherence
REST resource.
- Author:
- vp 2011.07.08
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected KeyConverter
Create key converter instance.Determine the name of the cache.Determine the class of the cache key.Return a KeyConverter instance for this resource.Return a map of marshaller classes keyed by media type.int
Return the max size of result set this resource is allowed to return.Return the query configuration for this resource.Determine the class of the cached values.void
setCacheName
(String sName) Set the name of the cache.void
setKeyClass
(Class clz) Set the key class.void
Set the key converter class.void
setMarshallerMap
(Map<String, Class> map) Set the map of marshaller classes keyed by media type.void
setMaxResults
(int cMaxResults) Set the max size of result set this resource is allowed to return.void
setQueryConfig
(QueryConfig config) Set the query configuration for this resource.void
setValueClass
(Class clz) Set the value class.
-
Constructor Details
-
ResourceConfig
public ResourceConfig()
-
-
Method Details
-
getCacheName
Determine the name of the cache.- Returns:
- the cache name
-
setCacheName
Set the name of the cache.- Parameters:
sName
- the cache name
-
getKeyClass
Determine the class of the cache key.- Returns:
- the key class
-
setKeyClass
Set the key class.- Parameters:
clz
- the key class
-
getValueClass
Determine the class of the cached values.- Returns:
- the value class
-
setValueClass
Set the value class.- Parameters:
clz
- the value class
-
setKeyConverterClass
Set the key converter class.- Parameters:
clz
- the key converter class
-
getKeyConverter
Return a KeyConverter instance for this resource.- Returns:
- key converter instance
-
getMarshallerMap
Return a map of marshaller classes keyed by media type.- Returns:
- a map of REST marshaller classes keyed by media type
-
setMarshallerMap
Set the map of marshaller classes keyed by media type.- Parameters:
map
- a map of marshaller classes keyed by media type
-
getMaxResults
public int getMaxResults()Return the max size of result set this resource is allowed to return.- Returns:
- the max size of result set allowed for this resource
-
setMaxResults
public void setMaxResults(int cMaxResults) Set the max size of result set this resource is allowed to return.- Parameters:
cMaxResults
- max size of result set this resource is allowed to return
-
getQueryConfig
Return the query configuration for this resource.- Returns:
- a QueryConfig instance
-
setQueryConfig
Set the query configuration for this resource.- Parameters:
config
- the query configuration
-
createKeyConverter
Create key converter instance.- Returns:
- key converter instance
-