Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.core.config
Interface CacheConfiguration

All Known Implementing Classes:
JAXBCacheConfiguration

public interface CacheConfiguration

Cache configuration in the server


Field Summary
static java.lang.String PROPERTY_CHECK_LOCAL_FS
           
static java.lang.String PROPERTY_MAX_SIZE
           
static java.lang.String PROPERTY_TIMEOUT_MILLIS
           

 

Method Summary
 java.util.Set<java.lang.String> getCacheProperties()
           
 java.lang.String getCacheProperty(java.lang.String name)
          A cache property
 int getMaxSize()
           
 long getTimeoutMillis()
           
 boolean isEnabled()
           
 void setCacheProperty(java.lang.String name, java.lang.String value)
          Set a connection property
 void setCheckLocalFS(boolean checkLocalFS)
          Set to enable checking of the local file system
 void setEnabled(boolean enabled)
           
 void setMaxSize(int size)
          Set the max size of the cache
 void setTimeoutMillis(long timeout)
          Set the timeout value

 

Field Detail

PROPERTY_MAX_SIZE

static final java.lang.String PROPERTY_MAX_SIZE
See Also:
Constant Field Values

PROPERTY_TIMEOUT_MILLIS

static final java.lang.String PROPERTY_TIMEOUT_MILLIS
See Also:
Constant Field Values

PROPERTY_CHECK_LOCAL_FS

static final java.lang.String PROPERTY_CHECK_LOCAL_FS
See Also:
Constant Field Values

Method Detail

isEnabled

boolean isEnabled()
Returns:
true if the cache is enabled

setEnabled

void setEnabled(boolean enabled)
Parameters:
enabled - true to enable caching

getCacheProperty

java.lang.String getCacheProperty(java.lang.String name)
A cache property
Parameters:
name - the property name
Returns:
the property value

setCacheProperty

void setCacheProperty(java.lang.String name,
                      java.lang.String value)
Set a connection property
Parameters:
name - the name
value - the value (if null, removes the property)

getCacheProperties

java.util.Set<java.lang.String> getCacheProperties()
Returns:
the available cache properties

getMaxSize

int getMaxSize()
Returns:
the maximum size the of the content cache
See Also:
PROPERTY_MAX_SIZE

setMaxSize

void setMaxSize(int size)
Set the max size of the cache
Parameters:
size - the size

getTimeoutMillis

long getTimeoutMillis()
Returns:
the timeout in milliseconds for items in the cache
See Also:
PROPERTY_TIMEOUT_MILLIS

setTimeoutMillis

void setTimeoutMillis(long timeout)
Set the timeout value
Parameters:
timeout - the timeout in milliseconds

setCheckLocalFS

void setCheckLocalFS(boolean checkLocalFS)
Set to enable checking of the local file system
Parameters:
checkLocalFS - true to check the file system

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.